summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-06-11 04:30:21 +0200
committerIngo Molnar <mingo@elte.hu>2002-06-11 04:30:21 +0200
commit2b75b53521e41a4b62ccafb7d2e2b978d3ba7eda (patch)
tree64d2a04a5a55528a81b58953d8c2907969670e1a /fs
parentc700d531a32369ec82ae825ca952758db162bc6f (diff)
- put the sync wakeup feature back in, based on Mike Kravetz's patch.
Diffstat (limited to 'fs')
-rw-r--r--fs/pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/pipe.c b/fs/pipe.c
index 4a6a5682de1a..31a77d56851c 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -119,7 +119,7 @@ do_more_read:
* writers synchronously that there is more
* room.
*/
- wake_up_interruptible(PIPE_WAIT(*inode));
+ wake_up_interruptible_sync(PIPE_WAIT(*inode));
kill_fasync(PIPE_FASYNC_WRITERS(*inode), SIGIO, POLL_OUT);
if (!PIPE_EMPTY(*inode))
BUG();
@@ -219,7 +219,7 @@ pipe_write(struct file *filp, const char *buf, size_t count, loff_t *ppos)
* is going to give up this CPU, so it doesnt have
* to do idle reschedules.
*/
- wake_up_interruptible(PIPE_WAIT(*inode));
+ wake_up_interruptible_sync(PIPE_WAIT(*inode));
kill_fasync(PIPE_FASYNC_READERS(*inode), SIGIO, POLL_IN);
PIPE_WAITING_WRITERS(*inode)++;
pipe_wait(inode);