Files
linux/drivers/ide
Mikulas Patocka bc82301463 ide: Fix IDE taskfile with cfq scheduler
commit 720fc22a7a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-02 10:20:52 -07:00
..
2009-05-17 19:12:25 +02:00
2009-01-06 17:20:52 +01:00
2009-05-17 19:12:25 +02:00
2009-03-27 12:46:28 +01:00
2009-05-17 19:12:25 +02:00
2009-08-14 13:09:32 -07:00
2009-09-01 17:52:57 -07:00
2009-05-15 06:44:38 +02:00
2009-09-01 17:52:57 -07:00
2009-03-27 12:46:34 +01:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2009-04-08 14:13:03 +02:00
2009-09-15 01:36:25 -07:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2009-09-22 16:29:00 -07:00
2009-06-15 18:52:53 +02:00
2009-06-15 18:52:53 +02:00
2009-04-08 14:13:03 +02:00
2009-06-15 18:52:53 +02:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2009-06-15 18:52:55 +02:00
2009-06-15 18:53:00 +02:00
2009-12-18 14:05:04 -08:00
2009-01-06 17:20:52 +01:00
2009-05-17 19:12:25 +02:00