diff options
| author | Greg KH <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 15:10:59 -0400 |
| commit | ad2c10f8f00d3fe2e37dd8a107e7cf4ac0459489 (patch) | |
| tree | 5571f6a5784f51efddf9c1ee0408894cd63a460f /fs/pipe.c | |
| parent | 6b7839007098a6b5612d31690e11277d4242e6ae (diff) | |
| parent | 2ade81473636b33aaac64495f89a7dc572c529f0 (diff) | |
Merge ../torvalds-2.6/
Diffstat (limited to 'fs/pipe.c')
| -rw-r--r-- | fs/pipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -39,7 +39,11 @@ void pipe_wait(struct inode * inode) | |||
| 39 | { | 39 | { |
| 40 | DEFINE_WAIT(wait); | 40 | DEFINE_WAIT(wait); |
| 41 | 41 | ||
| 42 | prepare_to_wait(PIPE_WAIT(*inode), &wait, TASK_INTERRUPTIBLE); | 42 | /* |
| 43 | * Pipes are system-local resources, so sleeping on them | ||
| 44 | * is considered a noninteractive wait: | ||
| 45 | */ | ||
| 46 | prepare_to_wait(PIPE_WAIT(*inode), &wait, TASK_INTERRUPTIBLE|TASK_NONINTERACTIVE); | ||
| 43 | up(PIPE_SEM(*inode)); | 47 | up(PIPE_SEM(*inode)); |
| 44 | schedule(); | 48 | schedule(); |
| 45 | finish_wait(PIPE_WAIT(*inode), &wait); | 49 | finish_wait(PIPE_WAIT(*inode), &wait); |
