]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't flush plugged IO on forced preemtion scheduling
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Apr 2011 15:08:20 +0000 (08:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Apr 2011 15:08:20 +0000 (08:08 -0700)
commit68d64738e61e888a0dba96da076974467de8d39a
treec71585118b3ddd42b1bf666fef9f96e60b79f757
parentdcd3baf9a2d9d2116d1641095f8908cf674ec877
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: Jens Axboe <jaxboe@fusionio.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched.c