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, 12 Oct 2021 20:39:59 +0000 (21:39 +0100)
commit8d8bdd33bdb02019eacd5236534cc4715c0958e8
treef1d139528f3434764b1cae05cc09768dfb850553
parent5ab2efeceb8738b8cc35832c53551dcd9ca518bf
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