commit | 3c18ef8117f0515b1e455713dfc2e18b06db9bb5 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@suse.cz> | Wed Apr 17 21:50:58 2013 +0200 |
committer | Miklos Szeredi <mszeredi@suse.cz> | Wed Apr 17 21:50:58 2013 +0200 |
tree | ce54622dc8424780f26b9b4649ce4eba8ffa6845 | |
parent | 722d2bea8c601d0744e4a37170533fdf6214a678 [diff] [blame] |
fuse: optimize wake_up Normally blocked_waitq will be inactive, so optimize this case. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 3673105..be5c7e1 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c
@@ -379,7 +379,7 @@ fc->blocked = 0; /* Wake up next waiter, if any */ - if (!fc->blocked) + if (!fc->blocked && waitqueue_active(&fc->blocked_waitq)) wake_up(&fc->blocked_waitq); if (fc->num_background == fc->congestion_threshold &&