HomeFreeBSD

Fix inability to destroy snapshot used over NFS

Description

Fix inability to destroy snapshot used over NFS

The cache of struct svc_export and struct svc_expkey by nfsd and
rpc.mountd for the snapshot holds references to the mount point.
We need to flush them out before unmounting, otherwise umount
would fail with EBUSY.

Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #6000
Closes #10783

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Aug 25 2020, 12:33 AM
GitHub <noreply@github.com>Committed on Aug 25 2020, 12:33 AM
Parents
rG184df27eef0a: Avoid symbol collision with in-kernel zstdlib
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGb9007997682f: Fix inability to destroy snapshot used over NFS (authored by youzhongyang <youzhong@gmail.com>).Aug 25 2020, 12:33 AM