projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722d2be
)
fuse: optimize wake_up
author
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 17 Apr 2013 19:50:58 +0000
(21:50 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 17 Apr 2013 19:50:58 +0000
(21:50 +0200)
Normally blocked_waitq will be inactive, so optimize this case.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dev.c
patch
|
blob
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index
3673105
..
be5c7e1
100644
(file)
--- 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 &&