]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Sep 2021 00:06:24 +0000 (09:06 +0900)
commit242d39ebc1391f4734f6e63ff13764de92bc5f70
tree6822460da66fecdb92d3b6f8aa2157cfb9d74a27
parent8f27311eb2aec2411d1fb7d62e6c9d75d21ae8df
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.
src/udev/udev-node.c