提交 3c18ef81 编写于 作者: M Miklos Szeredi

fuse: optimize wake_up

Normally blocked_waitq will be inactive, so optimize this case.
Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册