summaryrefslogtreecommitdiffstats
path: root/sys/ufs
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/ufs
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/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index a6d4441..a7ae484 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1412,7 +1412,7 @@ softdep_process_worklist(mp, full)
*/
if (should_yield()) {
FREE_LOCK(&lk);
- kern_yield(-1);
+ kern_yield(PRI_UNCHANGED);
bwillwrite();
ACQUIRE_LOCK(&lk);
}
OpenPOWER on IntegriCloud