diff options
author | kib <kib@FreeBSD.org> | 2015-09-22 10:31:48 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-09-22 10:31:48 +0000 |
commit | 4d7ca6a717f4b96753cf1c86711931bc890384ef (patch) | |
tree | 87e41c3517c4ff6b178bd96b6dada38f68de39b6 /sys/kern | |
parent | 0f328f755ef12f6cb68a753ed5e48e934002a2b8 (diff) | |
download | FreeBSD-src-4d7ca6a717f4b96753cf1c86711931bc890384ef.zip FreeBSD-src-4d7ca6a717f4b96753cf1c86711931bc890384ef.tar.gz |
The stable/10 branch uses mutex for vfs_hash. Fix build.
Submitted by: Jukka Ukkonen <jau789@gmail.com>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_hash.c b/sys/kern/vfs_hash.c index 1398a47..edcda6b 100644 --- a/sys/kern/vfs_hash.c +++ b/sys/kern/vfs_hash.c @@ -181,7 +181,7 @@ vfs_hash_changesize(int newmaxvnodes) * None of the vnodes in the table can be recycled because to * do so, they have to be removed from the hash table. */ - rw_wlock(&vfs_hash_lock); + mtx_lock(&vfs_hash_mtx); vfs_hash_oldtbl = vfs_hash_tbl; vfs_hash_oldmask = vfs_hash_mask; vfs_hash_tbl = vfs_hash_newtbl; @@ -194,6 +194,6 @@ vfs_hash_changesize(int newmaxvnodes) vp, v_hashlist); } } - rw_wunlock(&vfs_hash_lock); + mtx_unlock(&vfs_hash_mtx); free(vfs_hash_oldtbl, M_VFS_HASH); } |