[systemd-devel] [PATCH] md: Drop sending a change uevent when stopping

Shaohua Li shli at kernel.org
Wed Feb 17 18:19:43 UTC 2016


On Wed, Feb 17, 2016 at 05:25:00PM +0100, Sebastian Parschauer wrote:
> 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 sent to udev which
> races against the remove event (KOBJ_REMOVE) from md_free().
> So drop sending the change event.
> 
> A change is likely also required in mdadm as many versions send the
> change event to udev as well.

Makes sense, it's unlikely we need the CHANGE event. Applied.

Thanks,
Shaohua


More information about the systemd-devel mailing list