Skip to content
Commit 6631e635 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

block: don't flush plugged IO on forced preemtion scheduling



We really only want to unplug the pending IO when the process actually
goes to sleep.  So move the test for flushing the plug up to the place
where we actually deactivate the task - where we have properly checked
for preemption and for the process really sleeping.

Acked-by: default avatarJens Axboe <jaxboe@fusionio.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a626ca6a
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