summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_debug.c
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2013-09-01 23:02:59 +0000
committerrmacklem <rmacklem@FreeBSD.org>2013-09-01 23:02:59 +0000
commit8d06f831a7fd6d823c0aff22030a780f8b8fd05e (patch)
treed7581118dafcc5b29d5d01d4bb41cb2114a97168 /sys/kern/uipc_debug.c
parent09ec5c277c487bd53321f3f207be7a596ea08f65 (diff)
downloadFreeBSD-src-8d06f831a7fd6d823c0aff22030a780f8b8fd05e.zip
FreeBSD-src-8d06f831a7fd6d823c0aff22030a780f8b8fd05e.tar.gz
Forced dismounts of NFS mounts can fail when thread(s) are stuck
waiting for an RPC reply from the server while holding the mount point busy (mnt_lockref incremented). This happens because dounmount() msleep()s waiting for mnt_lockref to become 0, before calling VFS_UNMOUNT(). This patch adds a new VFS operation called VFS_PURGE(), which the NFS client implements as purging RPCs in progress. Making this call before checking mnt_lockref fixes the problem, by ensuring that the VOP_xxx() calls will fail and unbusy the mount point. Reported by: sbruno Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/kern/uipc_debug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud