]> git.baikalelectronics.ru Git - kernel.git/commit
md: bad blocks shouldn't cause a Blocked status on a Faulty device.
authorNeilBrown <neilb@suse.de>
Thu, 8 Dec 2011 05:22:48 +0000 (16:22 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 8 Dec 2011 05:22:48 +0000 (16:22 +1100)
commit62f806e3125c08d0c5b6436584c77b0440986f6a
tree03de10a1899d74b42d00740437140a032686d011
parent18f9bd1b9f9bb98ac05e460e76fb2b623b5f31f1
md: bad blocks shouldn't cause a Blocked status on a Faulty device.

Once a device is marked Faulty the badblocks - whether acknowledged or
not - become irrelevant.  So they shouldn't cause the device to be
marked as Blocked.

Without this patch, a process might write "-blocked" to clear the
Blocked status, but while that will correctly fail the device, it
won't remove the apparent 'blocked' status.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c