From: Miklos Szeredi Date: Wed, 17 Apr 2013 19:50:58 +0000 (+0200) Subject: fuse: optimize wake_up X-Git-Tag: v3.12-rc1~875^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c18ef8117f0515b1e455713dfc2e18b06db9bb5;p=kernel%2Fkernel-generic.git fuse: optimize wake_up Normally blocked_waitq will be inactive, so optimize this case. Signed-off-by: Miklos Szeredi --- 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 @@ __releases(fc->lock) 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 &&