]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix clearing of 'blocked' flag in the presence of bad blocks.
authorNeilBrown <neilb@suse.de>
Tue, 30 Aug 2011 06:20:17 +0000 (16:20 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 30 Aug 2011 06:20:17 +0000 (16:20 +1000)
commit1ab88ef53dc1b4b4fe1d42a8c8318d0f7214931b
tree1b17033fe40a2b29c7e4d6a2f200f54f39514a4d
parent4f9c2a7624fc4884790c70e1daf602b6cab56394
md: fix clearing of 'blocked' flag in the presence of bad blocks.

When the 'blocked' flag on a device is cleared while there are
unacknowledged bad blocks we must fail the device.  This is needed for
backwards compatability of the interface.

The code currently uses the wrong test for "unacknowledged bad blocks
exist".  Change it to the right test.

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