Skip to content

Commit 3c0edea

Browse files
committed
pipe: Remove sync on wake_ups
1 parent cefa80c commit 3c0edea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/pipe.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
332332
do_wakeup = 1;
333333
wake = head - (tail - 1) == pipe->max_usage / 2;
334334
if (wake)
335-
wake_up_interruptible_sync_poll_locked(
335+
wake_up_locked_poll(
336336
&pipe->wait, EPOLLOUT | EPOLLWRNORM);
337337
spin_unlock_irq(&pipe->wait.lock);
338338
if (wake)
@@ -371,7 +371,7 @@ pipe_read(struct kiocb *iocb, struct iov_iter *to)
371371

372372
/* Signal writers asynchronously that there is more room. */
373373
if (do_wakeup) {
374-
wake_up_interruptible_sync_poll(&pipe->wait, EPOLLOUT | EPOLLWRNORM);
374+
wake_up_interruptible_poll(&pipe->wait, EPOLLOUT | EPOLLWRNORM);
375375
kill_fasync(&pipe->fasync_writers, SIGIO, POLL_OUT);
376376
}
377377
if (ret > 0)
@@ -477,7 +477,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
477477
* syscall merging.
478478
* FIXME! Is this really true?
479479
*/
480-
wake_up_interruptible_sync_poll_locked(
480+
wake_up_locked_poll(
481481
&pipe->wait, EPOLLIN | EPOLLRDNORM);
482482

483483
spin_unlock_irq(&pipe->wait.lock);
@@ -531,7 +531,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from)
531531
out:
532532
__pipe_unlock(pipe);
533533
if (do_wakeup) {
534-
wake_up_interruptible_sync_poll(&pipe->wait, EPOLLIN | EPOLLRDNORM);
534+
wake_up_interruptible_poll(&pipe->wait, EPOLLIN | EPOLLRDNORM);
535535
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
536536
}
537537
if (ret > 0 && sb_start_write_trylock(file_inode(filp)->i_sb)) {

0 commit comments

Comments
 (0)