]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: sort received events by their seqnum (#37314)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 May 2025 14:04:49 +0000 (23:04 +0900)
committerGitHub <noreply@github.com>
Mon, 12 May 2025 14:04:49 +0000 (23:04 +0900)
commitfdb4d869f0b45e97ea4a24885e28a86a6d2d310a
tree692cda08e4612b129ed4e6a6794a6b927171c85f
parentbd543bca117303e6a1831e1775b4976b5146cf42
parent6a04c1e518008bb81b41a94f56b015801fd399b2
udev: sort received events by their seqnum (#37314)

The kernel sometimes sends uevents in a random order, so previously the
received events were not sorted by their seqnum. We determine which
event is ready for processing by using the assumption that queued events
are sorted by their seqnum. Let's sort the received events before queue
them, to make events processed in a correct ordering.