]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: fix failure when trying to repair a read error.
authorNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:55:33 +0000 (15:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:55:33 +0000 (15:55 +1000)
commit32d66e23cc54f8d1fa5f80c9739e0ac2ebaaecdd
treee58062bddc9b1770328c450c780d60e72459173e
parenta58ae33c1a7e2db8756b9cd1ba4ebd396cd79f77
md/raid10: fix failure when trying to repair a read error.

commit ff4b4aa9738a20536c9472ec01058eaded8eccf5
     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 <chibi@gol.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c