Skip to content
Commit 4aa0d230 authored by Dave Kleikamp's avatar Dave Kleikamp
Browse files

JFS: call io_schedule() instead of schedule() to avoid deadlock



The introduction of Jens Axboe's explicit i/o plugging patches introduced a
deadlock in jfs.  This was caused by the process initiating I/O not
unplugging the queue before waiting on the commit thread.  The commit
thread itself was waiting for that I/O to complete.  Calling io_schedule()
rather than schedule() unplugs the I/O queue avoiding the deadlock, and it
appears to be the right function to call in any case.

Signed-off-by: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent 82d5b9a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment