summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_hash.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-22 09:56:58 -0300
committerRenato Botelho <renato@netgate.com>2015-09-22 09:56:58 -0300
commit937af80ffaa60cda5dd07abe75baba14fe44b4f5 (patch)
tree765afe3455a670cf160d993ee111e3acecc89ad0 /sys/kern/vfs_hash.c
parent5ecf856cff5263e8ae0cb661982c2a7bd986d97c (diff)
parent2b06f06f2d6b9b6b4a1eb0d93cddf43277fcd295 (diff)
downloadFreeBSD-src-937af80ffaa60cda5dd07abe75baba14fe44b4f5.zip
FreeBSD-src-937af80ffaa60cda5dd07abe75baba14fe44b4f5.tar.gz
Merge branch 'stable/10' into devel
Diffstat (limited to 'sys/kern/vfs_hash.c')
-rw-r--r--sys/kern/vfs_hash.c4
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);
}
OpenPOWER on IntegriCloud