diff options
author | Michal Sekletár <msekleta@redhat.com> | 2020-10-23 16:30:23 +0200 |
---|---|---|
committer | Michal Sekletár <msekleta@redhat.com> | 2020-11-06 13:35:05 +0100 |
commit | 30f6dce62cb3a738b20253f2192270607c31b55b (patch) | |
tree | bfa57ef10bb866339ce666c6784110c51664380a /src/udev/udevadm-test.c | |
parent | basic/stat-util: make mtime check stricter and use entire timestamp (diff) | |
download | systemd-30f6dce62cb3a738b20253f2192270607c31b55b.tar.xz systemd-30f6dce62cb3a738b20253f2192270607c31b55b.zip |
udev: make algorithm that selects highest priority devlink less susceptible to race conditions
Previously it was very likely, when multiple contenders for the symlink
appear in parallel, that algorithm would select wrong symlink (i.e. one
with lower-priority).
Now the algorithm is much more defensive and when we detect change in
set of contenders for the symlink we reevaluate the selection. Same
happens when new symlink replaces already existing symlink that points
to different device node.
Diffstat (limited to 'src/udev/udevadm-test.c')
0 files changed, 0 insertions, 0 deletions