projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index 3673105889628714a4f5c02fcfa73f0301ba3320..be5c7e13320c8007ee3d0f7d221c07a886eb52f9 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 &&