]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
d_set_mounted(): we don't need to bump seqcount component of rename_lock
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 25 Feb 2025 18:21:14 +0000 (13:21 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 8 Jun 2025 21:47:23 +0000 (17:47 -0400)
commit5e317d23f6c6c4b59d84e228a2271228e81cc797
tree8417b124d13fad314b927eec15bfdf851b6bce1b
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
d_set_mounted(): we don't need to bump seqcount component of rename_lock

IOW, read_seqlock_excl() is sufficient there; no need to bother
with write_seqlock() (forcing all rename_lock readers into retry).

That leaves rename_lock taken for write only when we want to change
someone's parent or name.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c