]> git.ipfire.org Git - thirdparty/systemd.git/commit
path: Close inotify FD asynchronously
authorMichal Koutný <mkoutny@suse.com>
Mon, 17 Feb 2025 14:40:24 +0000 (15:40 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Mar 2025 20:37:58 +0000 (21:37 +0100)
commitcf62e00295cbec7e61485f766321f6879620afc0
tree275e6ce05919736c7dec628cb87377eb4f686eae
parent52d5043b5e78f3d814288fe568361d2a1a6ae4b1
path: Close inotify FD asynchronously

inotify FD may take several milliseconds to close.  We measured
daemon-reload

        default: (0.427 ± 0.05) s
        async:   (0.323 ± 0.02) s

with 5 path units out of 422 units. I.e. ~1% of units cause ~25% of
delay, hence this fix seems like low-hanging fruit on the daemon-reload
critical path.

Particular inotify slowness pointed out by @fbuihuu.
src/core/path.c