mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
fuse: optimize wake_up
Normally blocked_waitq will be inactive, so optimize this case. Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
1 parent
722d2bea8c
commit
3c18ef8117
1 file changed
+1
-1
+1
-1
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user