]> git.baikalelectronics.ru Git - kernel.git/commit
md: destroy partitions and notify udev when md array is stopped.
authorNeilBrown <neilb@suse.de>
Tue, 28 Oct 2008 06:01:23 +0000 (17:01 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 28 Oct 2008 06:01:23 +0000 (17:01 +1100)
commitbf18cd206c354e0df6a772d67fb028167fc61004
tree989d1ac0be656e51d44eaf8513076917bfed3adf
parentae476cb42fea6d82bfd52c92c790db6aa2890a2d
md: destroy partitions and notify udev when md array is stopped.

md arrays are not currently destroyed when they are stopped - they
remain in /sys/block.  Last time I tried this I tripped over locking
too much.

A consequence of this is that udev doesn't remove anything from /dev.
This is rather ugly.

As an interim measure until proper device removal can be achieved,
make sure all partitions are removed using the BLKRRPART ioctl, and
send a KOBJ_CHANGE when an md array is stopped.

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