提交 e7c3c646 编写于 作者: A Al Viro

splice_to_pipe(): don't open-code wakeup_pipe_readers()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 4038acdb
......@@ -242,10 +242,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
}
if (do_wakeup) {
smp_mb();
if (waitqueue_active(&pipe->wait))
wake_up_interruptible_sync(&pipe->wait);
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
wakeup_pipe_readers(pipe);
do_wakeup = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册