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.
continue;
/* identical device event found */
- if (devpath_len == loop_devpath_len) {
- /* devices names might have changed/swapped in the meantime */
- if (major(devnum) != 0 || ifindex > 0)
- continue;
+ if (devpath_len == loop_devpath_len)
goto set_delaying_seqnum;
- }
/* parent device event found */
if (devpath[common] == '/')