]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: update devlink with the newer device node even when priority is equivalent
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 30 Oct 2023 04:31:23 +0000 (13:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 1 Nov 2023 10:46:03 +0000 (19:46 +0900)
commit7ec5ce5673d82818448ac36def7e0c7f7ca44805
tree94c05a7bcc1c2e193b9a078be16b54236e69a6e5
parentd397191b6d3001c2920e15e3ce3c9e7a31c66436
udev: update devlink with the newer device node even when priority is equivalent

Several udev rules depends on the previous behavior, i.e. that udev
replaces the devlink with the newer device node when the priority is
equivalent. Let's relax the optimization done by
331aa7aa15ee5dd12b369b276f575d521435eb52.

Follow-up for 331aa7aa15ee5dd12b369b276f575d521435eb52.

Note, the offending commit drops O(N) of file reads per uevent, and this
commit does not change the computational order. So, hopefully the
performance impact of this change is small enough.

Fixes #28141.
src/udev/udev-node.c