diff options
author | julian <julian@FreeBSD.org> | 2004-06-16 00:26:31 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-16 00:26:31 +0000 |
commit | 6c9d81ae0df6427002b251b73dadd33e8dcad9ac (patch) | |
tree | ccd863bb9258875fbfaaa74744c38e9db22822b0 /sys/fs | |
parent | eedef68f32aacaf0c79774e686ad03691318b8d3 (diff) | |
download | FreeBSD-src-6c9d81ae0df6427002b251b73dadd33e8dcad9ac.zip FreeBSD-src-6c9d81ae0df6427002b251b73dadd33e8dcad9ac.tar.gz |
Nice, is a property of a process as a whole..
I mistakenly moved it to the ksegroup when breaking up the process
structure. Put it back in the proc structure.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 9d53ca5..a90233e 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -470,11 +470,11 @@ spec_xstrategy(struct vnode *vp, struct buf *bp) /* * Slow down disk requests for niced processes. */ - if (doslowdown && td && td->td_ksegrp->kg_nice > 0) { + if (doslowdown && td && td->td_proc->p_nice > 0) { mtx_lock(&strategy_mtx); msleep(&strategy_mtx, &strategy_mtx, PPAUSE | PCATCH | PDROP, "ioslow", - td->td_ksegrp->kg_nice); + td->td_proc->p_nice); } /* * Collect statistics on synchronous and asynchronous read |