udev: do not try to lock whole block device on remove event
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Oct 2024 21:22:24 +0000 (06:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 Oct 2024 01:51:19 +0000 (10:51 +0900)
commite8df18c9e171c87aebb2df8ac3bdd8f116236892
treea4282e57e583887b449c2f48f54ca1069d3a78ef
parent5b2dce150d5eadcd33d620e095c9c1e2de51dd24
udev: do not try to lock whole block device on remove event

As another device may be created with the same device node while udevd
is processing the remove event of the previous owner of the device node.

This also adds comment why we skip watching device node on remove.
src/udev/udev-watch.c
src/udev/udev-worker.c