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>
Fri, 19 Nov 2021 20:11:45 +0000 (20:11 +0000)
commitb9d7c3a6a93c8567966e8241949fc0c9cffbb441
tree496635cdb982bf12978a5d63743c10206b288602
parent2fedadf55caf9e01d496a144756de015755fb68b
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