]> git.baikalelectronics.ru Git - kernel.git/commit
Allow faulty devices to be removed from a readonly array.
authorNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:54:13 +0000 (15:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:56:32 +0000 (15:56 +1000)
commit9d053efdfbe6567f1593ff1db57318caa70e8a33
tree7bffba40357f654de8ed31bc6a0e7468daa61234
parent07acc5bb228c2f8fceeb2d2fd9aaa80bfe71484e
Allow faulty devices to be removed from a readonly array.

Removing faulty devices from an array is a two stage process.
First the device is moved from being a part of the active array
to being similar to a spare device.  Then it can be removed
by a request from user space.

The first step is currently not performed for read-only arrays,
so the second step can never succeed.

So allow readonly arrays to remove failed devices (which aren't
blocked).

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