]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32532527418db6d4633aa856df7e34b7b66d7675
tree7481cb1db2ff94717e1f5bc20e6797ec9e668377
parent649644300b013e5a74e67940cd1b586d705ef970
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