[Bug 266236] ZFS NFS : .zfs/snapshot : Stale file handle

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Sep 2022 02:30:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266236

--- Comment #6 from eborisch+FreeBSD@gmail.com ---
Some extra info:

Steps I took to reproduce:

1) Mount NFS-exported zfs filesystem on client.
2) Try to enter a snapshot (.zfs/snapshot/foo) directory on client -> Stale
file handle error.
3) Unmount on client; stop nfsd on server
4) mount -v on server shows the requested snapshot as mounted
5) Try explicit unmount of the snapshot path -> umount hangs (but the snapshot
path no longer shows up in mount -v)
6) Try deleting snapshot -> zfs hangs

procstat -k $hung_unmount_pid: 

  PID    TID COMM                TDNAME              KSTACK                     
 5260 101043 umount              -                   mi_switch _sleep rms_wlock
zfsvfs_teardown zfs_umount dounmount kern_unmount amd64_syscall
fast_syscall_common 


procstat -k $hung_zfs_destroy:

  PID    TID COMM                TDNAME              KSTACK                     
 5826 101058 zfs                 -                   mi_switch _sleep vfs_busy
zfs_vfs_ref getzfsvfs_impl getzfsvfs zfsctl_snapshot_unmount
zfs_ioc_destroy_snaps zfsdev_ioctl_common zfsdev_ioctl devfs_ioctl vn_ioctl
devfs_ioctl_f kern_ioctl sys_ioctl amd64_syscall fast_syscall_common

At this point no _zfs_ or _zpool_ commands succeed. (Or at least, none that I
tried; all hang.)

Restart required to unwedge.

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