summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.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_bio.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_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 06e8625..0b5e973 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2234,7 +2234,7 @@ buf_daemon()
while (numdirtybuffers > lodirtybuffers) {
if (buf_do_flush(NULL) == 0)
break;
- kern_yield(-1);
+ kern_yield(PRI_UNCHANGED);
}
lodirtybuffers = lodirtysave;
OpenPOWER on IntegriCloud