Skip to content

Commit

Permalink
splice_to_pipe(): don't open-code wakeup_pipe_readers()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 4, 2016
1 parent 4038acd commit e7c3c64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e7c3c64

Please sign in to comment.