Files
linux/drivers
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
..
2010-08-02 10:20:43 -07:00
2009-09-24 07:21:05 -07:00
2009-10-15 09:58:27 -06:00
2010-08-02 10:20:42 -07:00
2009-11-12 07:26:01 -08:00
2010-02-23 07:37:54 -08:00
2009-07-12 12:22:34 -07:00
2010-08-02 10:20:42 -07:00
2009-06-18 13:04:04 -07:00
2010-05-12 14:57:15 -07:00