Skip to content

Commit bb945a1

Browse files
Al ViroPixelBoot
authored andcommitted
splice_to_pipe(): don't open-code wakeup_pipe_readers()
Change-Id: Iefc4f4cb702b673142bdb19875650833ab4daf79 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent c51bc18 commit bb945a1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

fs/splice.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
243243
}
244244

245245
if (do_wakeup) {
246-
smp_mb();
247-
if (waitqueue_active(&pipe->wait))
248-
wake_up_interruptible_sync(&pipe->wait);
249-
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
246+
wakeup_pipe_readers(pipe);
250247
do_wakeup = 0;
251248
}
252249

0 commit comments

Comments
 (0)