udevd: always block follwoing events with same devpath
Originally commented as "devices names might have changed/swapped in the meantime", but may not. For safety, let's block the following events with same devpath. This may fix #6514.
This commit is contained in:
parent
0bd0407efc
commit
baa461fc05
|
@ -756,12 +756,8 @@ static int is_device_busy(Manager *manager, struct event *event) {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* identical device event found */
|
/* identical device event found */
|
||||||
if (devpath_len == loop_devpath_len) {
|
if (devpath_len == loop_devpath_len)
|
||||||
/* devices names might have changed/swapped in the meantime */
|
|
||||||
if (major(devnum) != 0 || ifindex > 0)
|
|
||||||
continue;
|
|
||||||
goto set_delaying_seqnum;
|
goto set_delaying_seqnum;
|
||||||
}
|
|
||||||
|
|
||||||
/* parent device event found */
|
/* parent device event found */
|
||||||
if (devpath[common] == '/')
|
if (devpath[common] == '/')
|
||||||
|
|
Loading…
Reference in a new issue