svn commit: r233860 - stable/8/sys/ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Wed Apr 4 05:33:28 UTC 2012
Author: kib
Date: Wed Apr 4 05:33:28 2012
New Revision: 233860
URL: http://svn.freebsd.org/changeset/base/233860
Log:
MFC r233608:
Microoptimize: in qsync loop over mount vnodes, only unlock mount
interlock after we committed to try to vget() the vnode.
Modified:
stable/8/sys/ufs/ufs/ufs_quota.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/ufs/ufs/ufs_quota.c
==============================================================================
--- stable/8/sys/ufs/ufs/ufs_quota.c Wed Apr 4 05:29:21 2012 (r233859)
+++ stable/8/sys/ufs/ufs/ufs_quota.c Wed Apr 4 05:33:28 2012 (r233860)
@@ -915,12 +915,11 @@ qsync(struct mount *mp)
again:
MNT_VNODE_FOREACH(vp, mp, mvp) {
VI_LOCK(vp);
- MNT_IUNLOCK(mp);
if (vp->v_type == VNON) {
VI_UNLOCK(vp);
- MNT_ILOCK(mp);
continue;
}
+ MNT_IUNLOCK(mp);
error = vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, td);
if (error) {
MNT_ILOCK(mp);
More information about the svn-src-stable-8
mailing list