summaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-09-17 18:57:42 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-10-03 20:40:54 -0400
commite7c3c6462406a4de7956cfd8383eb0f2fea1bb6b (patch)
tree0aabbbb5e05a2bdb5a2dace98c5c9c57b54e91de /fs/splice.c
parent4038acdb187e226e72df393ae3dd150df857e8a3 (diff)
downloadlinux-e7c3c6462406a4de7956cfd8383eb0f2fea1bb6b.tar.gz
linux-e7c3c6462406a4de7956cfd8383eb0f2fea1bb6b.tar.bz2
linux-e7c3c6462406a4de7956cfd8383eb0f2fea1bb6b.zip
splice_to_pipe(): don't open-code wakeup_pipe_readers()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/splice.c b/fs/splice.c
index dd9bf7e410d2..36e9353c1910 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -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;
}