When stopping an MD device, then its device node /dev/mdX may still exist afterwards or it is recreated by udev. The next open() call can lead to creation of an inoperable MD device. The reason for this is that a change event (KOBJ_CHANGE) is announced to udev. So announce a removal event (KOBJ_REMOVE) to udev instead. Because of the support for kernels prior to 2.6.28, this change is required in mdadm and the kernel. The udev event from mdadm overrides the one from the kernel. Sebastian Parschauer (2): md: Inform udev about device removal when stopping Manage: Inform udev about device removal when stopping drivers/md/md.c | 2 +- Manage.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html