From: Mikulas Patocka Date: Tue, 6 Apr 2010 23:43:33 +0000 (-0700) Subject: ide: Fix IDE taskfile with cfq scheduler X-Git-Tag: v2.6.34-rc4~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=720fc22a7af79d91ec460c80efa92c65c12d105e;p=pandora-kernel.git ide: Fix IDE taskfile with cfq scheduler When ide taskfile access is being used (for example with hdparm --security commands) and cfq scheduler is selected, the scheduler crashes on BUG in cfq_put_request. The reason is that the cfq scheduler is tracking counts of read and write requests separately; the ide-taskfile subsystem allocates a read request and then flips the flag to make it a write request. The counters in cfq will mismatch. This patch changes ide-taskfile to allocate the READ or WRITE request as required and don't change the flag later. Signed-off-by: Mikulas Patocka Signed-off-by: David S. Miller --- Reading git-diff-tree failed