]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
file locks: Use wait_event_interruptible_timeout()
authorMatthew Wilcox <matthew@wil.cx>
Tue, 15 Jan 2008 04:28:30 +0000 (21:28 -0700)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 3 Feb 2008 22:51:36 +0000 (17:51 -0500)
commit4321e01e7dce8042758349ffa2929c723b0d4107
tree32b7b1a4af4b28c3ce1fc013bc7a2da4f2e21fde
parentb533184fc353d4a2d07929b4ac424a6f1bf5a3b9
file locks: Use wait_event_interruptible_timeout()

interruptible_sleep_on_locked() is just an open-coded
wait_event_interruptible_timeout(), with the one difference that
interruptible_sleep_on_locked() doesn't bother to check the condition on
which it is waiting, depending instead on the BKL to avoid the case
where it blocks after the wakeup has already been called.

locks_block_on_timeout() is only used in one place, so it's actually
simpler to inline it into its caller.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/locks.c