splice_to_pipe(): don't open-code wakeup_pipe_readers()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 17 Sep 2016 22:57:42 +0000 (18:57 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Oct 2016 00:40:54 +0000 (20:40 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/splice.c

index dd9bf7e410d2975f212accdf827df8a47c2d4c94..36e9353c19105c7e5e91a752e00b4573b1da1e30 100644 (file)
@@ -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;
                }