diff options
author | mdf <mdf@FreeBSD.org> | 2011-05-13 05:27:58 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-05-13 05:27:58 +0000 |
commit | bbbc4c545502c531d59efe43f9b7bde9b9a92979 (patch) | |
tree | adb29eb7ec0b83c1b5131762d1a0bd2a78471e17 /sys/kern/vfs_mount.c | |
parent | 224bed0ec43f4c221ce29acc84da51964f83f818 (diff) | |
download | FreeBSD-src-bbbc4c545502c531d59efe43f9b7bde9b9a92979.zip FreeBSD-src-bbbc4c545502c531d59efe43f9b7bde9b9a92979.tar.gz |
Use a name instead of a magic number for kern_yield(9) when the priority
should not change. Fetch the td_user_pri under the thread lock. This
is probably not necessary but a magic number also seems preferable to
knowing the implementation details here.
Requested by: Jason Behmer < jason DOT behmer AT isilon DOT com >
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 7bdb29c..2e07cf1 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1644,7 +1644,7 @@ __mnt_vnode_next(struct vnode **mvp, struct mount *mp) KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch")); if (should_yield()) { MNT_IUNLOCK(mp); - kern_yield(-1); + kern_yield(PRI_UNCHANGED); MNT_ILOCK(mp); } vp = TAILQ_NEXT(*mvp, v_nmntvnodes); |