diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2013-04-17 21:50:58 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-04-17 21:50:58 +0200 |
commit | 3c18ef8117f0515b1e455713dfc2e18b06db9bb5 (patch) | |
tree | ce54622dc8424780f26b9b4649ce4eba8ffa6845 /fs/fuse | |
parent | 722d2bea8c601d0744e4a37170533fdf6214a678 (diff) | |
download | linux-3c18ef8117f0515b1e455713dfc2e18b06db9bb5.tar.gz linux-3c18ef8117f0515b1e455713dfc2e18b06db9bb5.tar.bz2 linux-3c18ef8117f0515b1e455713dfc2e18b06db9bb5.zip |
fuse: optimize wake_up
Normally blocked_waitq will be inactive, so optimize this case.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 367310588962..be5c7e13320c 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 && |