]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r352736
authorRick Macklem <rmacklem@FreeBSD.org>
Wed, 30 Oct 2019 01:57:40 +0000 (01:57 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 30 Oct 2019 01:57:40 +0000 (01:57 +0000)
commit1f31859e85614e7d7aee8e8515f50312e9d908e7
tree1ff3db13c94a8b20b31b8d99fc22b0f8e86dc3b2
parent7baaef05afff3ebf87d046c8ddbb5ca9419e04fb
MFC: r352736
Replace all mtx_assert() calls for n_mtx and ncl_iod_mutex with macros.

To be consistent with replacing the mtx_lock()/mtx_unlock() calls on
the NFS node mutex (n_mtx) and ncl_iod_mutex, this patch replaces
all mtx_assert() calls on these mutexes with macros as well.
This will simplify changing these locks to sx locks in a future commit.
However, this change may be delayed indefinitely, since it appears there
is a deadlock when vnode_pager_setsize() is called to shrink the size
and the NFS node lock is held.
There is no semantic change as a result of this commit.
sys/fs/nfs/nfsport.h
sys/fs/nfsclient/nfs_clnfsiod.c
sys/fs/nfsclient/nfs_clnode.c