]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: readjust priorities of event sources 37262/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Apr 2025 04:59:07 +0000 (13:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 27 Apr 2025 00:47:07 +0000 (09:47 +0900)
commit905a89a2199d68fbdf2933a724c0c3aba3ae0f57
tree721128ccc8f70453d906ed6a94aa4bba0327fa55
parent5de236bd0771088cc5958559267a5b59ec99ed77
udev: readjust priorities of event sources

Follow-up for 511619087b66baa52907d1f6c25e28ccb9590a5f.

Notable changes are
- SIGTERM is the highest among others, to make not udevd queue too
  many events, as we need to serialize them anyway.
- device monitor has the second highest priority, to make 'remove'
  uevents received earlier than IN_IGNORED inotify events. Otherwise,
  after IN_IGNORED is received, if there is no queued event,
  /run/udev/queue file will be removed by the post-event source of the
  inotify event, and 'udevadm settle' or friends may wrongly finish,
  even we will soon queue 'remove' uevents for the device.
  This change should fix the recent instability of TEST-64-UDEV-STORAGE.

For other changes, see the comments in the code.
src/udev/udev-manager-ctrl.c
src/udev/udev-manager.c
src/udev/udev-manager.h
src/udev/udev-varlink.c