Commit 8458eee6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] correct wait accounting in wait_on_buffer()

__wait_on_buffer() needs to use io_schedule(), so processes in there are
accounted as being in I/O wait.
parent 7a3ed3de
......@@ -129,7 +129,7 @@ void __wait_on_buffer(struct buffer_head * bh)
prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE);
blk_run_queues();
if (buffer_locked(bh))
schedule();
io_schedule();
} while (buffer_locked(bh));
put_bh(bh);
finish_wait(wqh, &wait);
......
Markdown is supported
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