From: Namhyung Kim Date: Tue, 14 Jun 2011 04:20:19 +0000 (+1000) Subject: md/raid5: fix FUA request handling in ops_run_io() X-Git-Tag: v3.0-rc4~98^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b062962edb086011e94ec4d9eb3f6a6d814f2a8f;p=pandora-kernel.git md/raid5: fix FUA request handling in ops_run_io() Commit e9c7469bb4f5 ("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 Cc: stable@kernel.org Signed-off-by: Namhyung Kim Signed-off-by: NeilBrown --- Reading git-diff-tree failed