summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-05-13 05:27:58 +0000
committermdf <mdf@FreeBSD.org>2011-05-13 05:27:58 +0000
commitbbbc4c545502c531d59efe43f9b7bde9b9a92979 (patch)
treeadb29eb7ec0b83c1b5131762d1a0bd2a78471e17 /sys/kern/vfs_subr.c
parent224bed0ec43f4c221ce29acc84da51964f83f818 (diff)
downloadFreeBSD-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_subr.c')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index dead546..741061d 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -718,7 +718,7 @@ next_iter:
continue;
MNT_IUNLOCK(mp);
yield:
- kern_yield(-1);
+ kern_yield(PRI_UNCHANGED);
relock_mnt:
MNT_ILOCK(mp);
}
@@ -831,7 +831,7 @@ vnlru_proc(void)
vnlru_nowhere++;
tsleep(vnlruproc, PPAUSE, "vlrup", hz * 3);
} else
- kern_yield(-1);
+ kern_yield(PRI_UNCHANGED);
}
}
OpenPOWER on IntegriCloud