From: NeilBrown Date: Tue, 3 Jul 2012 05:55:33 +0000 (+1000) Subject: md/raid10: fix failure when trying to repair a read error. X-Git-Tag: v3.5-rc6~24^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=055d3747dbf00ce85c6872ecca4d466638e80c22;p=pandora-kernel.git md/raid10: fix failure when trying to repair a read error. commit 58c54fcca3bac5bf9290cfed31c76e4c4bfbabaf md/raid10: handle further errors during fix_read_error better. in 3.1 added "r10_sync_page_io" which takes an IO size in sectors. But we were passing the IO size in bytes!!! This resulting in bio_add_page failing, and empty request being sent down, and a consequent BUG_ON in scsi_lib. [fix missing space in error message at same time] This fix is suitable for 3.1.y and later. Cc: stable@vger.kernel.org Reported-by: Christian Balzer Signed-off-by: NeilBrown --- Reading git-diff-tree failed