]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: make algorithm that selects highest priority devlink less susceptible to race... 17431/head
authorMichal Sekletár <msekleta@redhat.com>
Fri, 23 Oct 2020 14:30:23 +0000 (16:30 +0200)
committerMichal Sekletár <msekleta@redhat.com>
Fri, 6 Nov 2020 12:35:05 +0000 (13:35 +0100)
commit30f6dce62cb3a738b20253f2192270607c31b55b
treebfa57ef10bb866339ce666c6784110c51664380a
parenta59b0a9f768f6e27b25f4f1bab6de08842e78d74
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.
src/udev/udev-event.c
src/udev/udev-node.c