summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fhci-q.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2010-04-07 01:43:33 +0200
committerDavid S. Miller <davem@davemloft.net>2010-04-07 01:43:33 +0200
commit720fc22a7af79d91ec460c80efa92c65c12d105e (patch)
tree87cf610c59bd1f1916083f067145779f31942274 /drivers/usb/host/fhci-q.c
parentide: Must hold queue lock when requeueing (diff)
downloadlinux-720fc22a7af79d91ec460c80efa92c65c12d105e.tar.xz
linux-720fc22a7af79d91ec460c80efa92c65c12d105e.zip
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 <mpatocka@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/host/fhci-q.c')
0 files changed, 0 insertions, 0 deletions