Commit 3c18ef81 authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: optimize wake_up

Normally blocked_waitq will be inactive, so optimize this case.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 722d2bea
......@@ -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 &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment