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)
committerRaspbian forward porter <root@raspbian.org>
Fri, 15 Oct 2021 10:50:57 +0000 (11:50 +0100)
commit254eaaefd2033171ddeb13b376ef4c57cd3b700c
tree16868e59f97f5912708943bae78d4eba036791d9
parent1bd3f4937568f01a8e7d991fb95aad0f48b61ece
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