dm raid: use read_disk_sb() throughout
authorHeinz Mauelshagen <heinzm@redhat.com>
Sat, 14 Jan 2017 02:53:10 +0000 (03:53 +0100)
committerMike Snitzer <snitzer@redhat.com>
Wed, 25 Jan 2017 11:49:07 +0000 (12:49 +0100)
commite2568465bd55b3ee619d9ebd02cc330feffaae04
tree7481cb1db2ff94717e1f5bc20e6797ec9e668377
parent63c32ed4afc2afd6b5551a8fcdea5b546dcaca4f
dm raid: use read_disk_sb() throughout

For consistency, call read_disk_sb() from
attempt_restore_of_faulty_devices() instead
of calling sync_page_io() directly.

Explicitly set device to faulty on superblock read error.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c