Namhyung Kim
c0877c4bc4
md/raid5: fix FUA request handling in ops_run_io()
...
commit b062962edb upstream.
Commit e9c7469bb4 ("md: implment REQ_FLUSH/FUA support")
introduced R5_WantFUA flag and set rw to WRITE_FUA in that case.
However remaining code still checks whether rw is exactly same
as WRITE or not, so FUAed-write ends up with being treated as
READ. Fix it.
This bug has been present since 2.6.37 and the fix is suitable for any
-stable kernel since then. It is not clear why this has not caused
more problems.
Cc: Tejun Heo <tj@kernel.org >
Signed-off-by: Namhyung Kim <namhyung@gmail.com >
Signed-off-by: NeilBrown <neilb@suse.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-06-23 15:24:08 -07:00
..
2009-10-16 16:25:19 +11:00
2006-01-01 22:21:50 +01:00
2010-08-13 13:20:25 -07:00
2010-08-13 13:20:25 -07:00
2009-04-02 19:55:23 +01:00
2009-12-18 14:05:04 -08:00
2009-07-23 20:30:42 +01:00
2009-12-18 14:04:59 -08:00
2010-07-05 11:11:20 -07:00
2009-06-22 10:12:26 +01:00
2010-08-26 16:41:44 -07:00
2009-04-09 00:27:17 +01:00
2009-07-23 20:30:42 +01:00
2009-10-16 23:18:15 +01:00
2010-02-23 07:37:58 -08:00
2009-09-04 20:40:34 +01:00
2009-06-22 10:12:33 +01:00
2011-02-17 15:37:14 -08:00
2008-10-10 13:36:58 +01:00
2009-04-02 19:55:27 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:27 +01:00
2011-03-02 09:46:43 -05:00
2011-03-02 09:46:44 -05:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:28 +01:00
2009-10-16 23:18:17 +01:00
2009-04-02 19:55:35 +01:00
2009-12-18 14:05:02 -08:00
2010-02-23 07:37:58 -08:00
2009-06-22 10:12:29 +01:00
2011-06-23 15:24:04 -07:00
2009-04-02 19:55:28 +01:00
2009-12-18 14:05:02 -08:00
2007-10-20 02:01:26 +01:00
2009-01-06 03:04:58 +00:00
2011-02-17 15:37:13 -08:00
2009-07-23 20:30:40 +01:00
2009-06-18 08:49:23 +10:00
2009-09-08 17:55:21 -07:00
2010-04-26 07:41:35 -07:00
2009-06-18 08:49:42 +10:00
2009-10-16 16:25:19 +11:00
2011-06-23 15:24:08 -07:00
2009-12-18 14:04:11 -08:00
2009-03-31 15:09:39 +11:00
2010-04-26 07:41:35 -07:00
2009-06-16 16:54:21 +10:00
2010-04-26 07:41:35 -07:00
2009-06-16 16:54:21 +10:00
2010-12-09 13:26:46 -08:00
2009-06-16 16:54:21 +10:00
2011-06-23 15:24:08 -07:00
2009-10-16 16:27:34 +11:00
2009-03-31 15:09:39 +11:00
2009-10-16 16:25:19 +11:00
2009-10-16 16:25:19 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 14:57:37 +11:00
2010-08-13 13:19:36 -07:00
2009-06-16 16:54:21 +10:00
2009-10-16 16:25:19 +11:00