]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The recent NFS forced unmount improvements introduced a side-effect
authorIan Dowse <iedowse@FreeBSD.org>
Wed, 17 Apr 2002 01:07:29 +0000 (01:07 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Wed, 17 Apr 2002 01:07:29 +0000 (01:07 +0000)
commitdf99ca52f1c4ce113294167c787fa12a14728af0
treefd4db1996177f18b62183e61df1a1e3dae92eb51
parent47d25c1dca2e579d9f6c6f8cfa0fb1d0f847df59
The recent NFS forced unmount improvements introduced a side-effect
where some client operations might be unexpectedly cancelled during
an unsuccessful non-forced unmount attempt. This causes problems
for amd(8), because it periodically attempts a non-forced unmount
to check if the filesystem is still in use.

Fix this by adding a new mountpoint flag MNTK_UNMOUNTF that is set
only during the operation of a forced unmount. Use this instead of
MNTK_UNMOUNT to trigger the cancellation of hung NFS operations.

Also correct a problem where dounmount() might inadvertently clear
the MNTK_UNMOUNT flag.

Reported by: simokawa
MFC after: 1 week
sys/kern/vfs_extattr.c
sys/kern/vfs_syscalls.c
sys/nfsclient/nfs_socket.c
sys/sys/mount.h