[Bug 282169] zfs rename deadlock with mountd, df & fstat (and possibly others)

[email protected] Mon, 18 May 2026 09:22:23 +0000
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282169

--- Comment #8 from Peter Eriksson <[email protected]> ---
This bug is very similar to one that we ran into on FreeBSD 15.0 where there is
a race condition between nfs mountd taking a lock when changing NFS exports
information/status on filesystems and kernel operations that attempt to read
extented attributes of files/directories. 

It very rarely happens but if you (for example) are doing things like batch
unsharing/sharing many hundreds/thousands of filesystems at the same time (like
doing "zfs rename" of filesystems out of a parent that is NFS exported into
another that isn't exported) as you are running rsync with the "-A" flag (to
copy files extended attributes) - or some other backup tool - and you have many
files/directories with extended attributes then you may run into this deadlock.

Rick has added a fix/workaround to mountd that will reduce the chance of this
race condition to occur and I think it'll be in FreeBSD 15.1. The real
bug/problem is in the ZFS filesystem code though and is much harder to fix the
right way...

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293198

-- 
You are receiving this mail because:
You are the assignee for the bug.