udev-node: always atomically create symlink to device node
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 17:20:33 +0000 (02:20 +0900)
committerMichael Biebl <biebl@debian.org>
Tue, 2 Nov 2021 16:29:45 +0000 (16:29 +0000)
commit459f456c4f07d509599334e5ada595683048b99c
tree8762d2315c03cd70aff3a8a1f75de7880c518eca
parentc75f6a28b8220ab6ed6b1567666a58219a87146e
udev-node: always atomically create symlink to device node

By the previous commit, it is not necessary to distinguish if the devlink
already exists. Also, I cannot find any significant advantages of the
previous complecated logic, that is, first try to create directly, and then
fallback to atomically creation. Moreover, such logic increases the chance
of conflicts between multiple udev workers.

This makes devlinks always created atomically. Hopefully, this reduces the
conflicts between the workers.

(cherry picked from commit 242d39ebc1391f4734f6e63ff13764de92bc5f70)

Gbp-Pq: Name udev-node-always-atomically-create-symlink-to-device-node.patch
src/udev/udev-node.c