sleep_on() and timeout

Andrea Arcangeli (andrea@e-mind.com)
Mon, 19 Oct 1998 22:10:29 +0200 (CEST)


If you want to use a timeout in the scheduling() you can' t use
sleep_on().

current->timeout = jiffies + 30 * HZ;
sleep_on(&block.b_wait);

This code is at line 73 of clntlock.c. So there we need to be
interruptible or not interruptible (and so be allowed to use a timeout)?

Note setting current->timeout cause no Oops or similar things, simply it'
s ignored from the scheduler because you used sleep_on() instead of
interruptible_sleep_on().

Right now I consider it notinterruptible because it' s more safe a
deadlock than a corrpution ;-).

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/