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-03-24 23:22:53 +01:00
2009-04-30 18:38:01 +02:00
2009-03-24 23:22:53 +01:00
2009-08-15 18:55:09 -07:00
2009-10-16 06:21:20 -04:00
2009-05-17 19:12:25 +02:00
2009-06-15 18:52:58 +02:00
2009-10-29 03:02:06 -07:00
2010-08-02 10:20:52 -07:00
2009-06-24 02:36:17 -07:00
2009-03-31 20:15:27 +02:00
2009-06-15 22:13:44 +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-06-15 18:52:58 +02:00
2009-06-15 18:52:58 +02:00
2009-06-07 15:37:10 +02:00
2009-06-15 22:13:44 +02:00
2009-06-15 22:13:44 +02:00
2009-06-15 21:30:26 -07:00
2009-05-17 19:12:25 +02:00
2009-08-27 10:17:15 -04:00
2009-06-20 10:11:11 -07:00
2009-09-22 07:17:25 -07:00
2009-04-28 07:37:30 +02:00
2009-08-14 13:09:32 -07:00
2009-06-25 23:57:16 -07:00
2009-09-01 17:52:57 -07:00
2009-07-21 20:23:46 -07:00
2009-04-08 14:12:49 +02:00
2009-06-24 00:32:32 -07:00
2009-06-25 23:57:16 -07:00
2009-05-15 06:44:38 +02:00
2009-09-01 17:52:57 -07:00
2009-06-25 23:57:16 -07:00
2009-09-22 07:17:25 -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-07-06 12:39:27 -07:00
2009-11-25 15:04:54 -08:00
2009-09-15 01:36:25 -07:00
2009-05-17 19:12:25 +02:00
2009-05-22 20:28:35 +02:00
2009-04-28 07:37:28 +02:00
2009-05-30 20:06:54 +02:00
2009-06-29 19:20:42 -07:00
2009-05-17 19:12:25 +02:00
2009-11-06 04:52:50 -08:00
2009-09-22 16:29:00 -07:00
2009-01-02 16:12:48 +01:00
2009-09-22 07:17:25 -07:00
2010-08-02 10:20:52 -07:00
2009-03-31 20:15:28 +02:00
2009-06-15 18:52:54 +02:00
2009-06-07 13:52:52 +02:00
2009-03-31 20:15:19 +02:00
2009-06-15 18:52:53 +02:00
2009-06-15 18:52:53 +02:00
2009-06-12 18:01:50 +02:00
2009-06-15 18:52:58 +02:00
2009-03-31 20:15:24 +02:00
2009-04-08 14:13:03 +02:00
2009-06-15 22:13:44 +02:00
2009-08-15 18:55:08 -07:00
2009-06-07 15:37:09 +02:00
2009-06-15 18:52:59 +02:00
2009-06-15 18:52:53 +02:00
2009-05-17 19:12:25 +02:00
2009-06-15 18:52:58 +02:00
2009-06-15 22:13:44 +02:00
2009-06-15 22:13:44 +02:00
2009-05-17 19:12:25 +02:00
2008-12-29 20:27:33 +01:00
2009-03-31 20:15:27 +02:00
2009-05-17 19:12:25 +02:00
2009-03-24 23:22:53 +01:00
2009-06-10 14:37:21 +02:00
2009-06-15 18:52:55 +02:00
2009-06-15 18:53:00 +02:00
2009-10-07 04:07:17 -07:00
2009-06-15 22:13:44 +02:00
2009-12-18 14:05:04 -08:00
2009-05-11 09:50:54 +02:00
2009-01-06 17:20:52 +01:00
2009-03-31 20:15:32 +02:00
2009-05-17 19:12:25 +02:00
2009-06-12 09:29:42 -07:00
2009-09-21 15:14:58 +02:00
2009-05-22 16:23:39 +02:00