diff options
| author | Domen Puncer <domen@coderock.org> | 2005-03-13 00:56:09 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-13 00:56:09 -0800 |
| commit | 64c3ae43c78ad9713c9d9dc6605f954df2d3cbe0 (patch) | |
| tree | 71010aca9d1bbc591a4f0240c153f205b9042c14 /net/unix/af_unix.c | |
| parent | 2fd06db336e23c9149cf58668d0aa22d1928a102 (diff) | |
[PATCH] ftape/fdc-io: insert set_current_state() before schedule_timeout()
Inserts a set_current_state(TASK_INTERRUPTIBLE) before the schedule_timeout()
call. Without this change, after the first iteration of the loop,
schedule_timeout() will not only return immediately, but the loop will break,
as the conditional will no longer be satisfied. In fact, this conditional
makes little sense given the workings of schedule_timeout. The timeout
variable is ignored, as well, and I'm fairly certain that it should be
included in the loop conditional. That way, if the timeout expires before a
signal hits, -ETIME will be returned by fdc_interrupt_wait() instead of
-EINTR.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
