[Devel] [PATCH vz10] ovl: release the upperdir/workdir in-use locks before the umount sync

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 10 19:47:40 MSK 2026


Applying with these fixes on my side:
- ovl_inuse_unlock_all() moved to the start of ovl_free_fs(), as in the
  version Amir queued
- the commit is now a cherry-pick of that version: "ms/" subject
  prefix, the upstream trailers, and a "cherry picked from" line that
  names overlayfs/vfs.git ovl-fixes, since it is not in Linus' tree yet

On 11/6/26 16:16, Denis V. Lunev wrote:
> --- a/fs/overlayfs/params.c
> +++ b/fs/overlayfs/params.c
> @@ -735,12 +735,9 @@ void ovl_free_fs(struct ovl_fs *ofs)
>  	iput(ofs->workdir_trap);
>  	dput(ofs->whiteout);
>  	dput(ofs->workdir);
> -	if (ofs->workdir_locked)
> -		ovl_inuse_unlock(ofs->workbasedir);
> +	ovl_inuse_unlock_all(ofs);

Moved to the top of the function, so the code matches cb6c084182d4
("ovl: release the upperdir/workdir in-use locks before the umount
sync") in overlayfs/vfs.git ovl-fixes and the next rebase drops our copy
cleanly.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list