From: Linus Torvalds Date: Wed, 13 Apr 2011 15:08:20 +0000 (-0700) Subject: block: don't flush plugged IO on forced preemtion scheduling X-Git-Tag: v2.6.39-rc4~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6631e635c65dc33cb798cc2f51d0ddd69ada6319;p=pandora-kernel.git 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 Acked-by: Peter Zijlstra Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed