On Mon, Feb 21, 2022 at 09:20:02AM +0100, Miklos Szeredi wrote: > This patch introduces a global rw_semaphore that is locked for read in > rename and for write in link. To prevent excessive contention, do not take > the lock in link on the first try. If the source of the link was found to > be unlinked, then retry with the lock held. Tested-by: Xavier Roche <xavier.roche@xxxxxxxxxxx> Revalidated patch (on a 5.16.5) using previous torture test; - on ext4 filesystem - on a cryptfs volume