diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-12-09 02:42:02 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-12-09 02:42:02 +0000 |
commit | 171976dba2208151b69025bbf1a0b5f395ddf742 (patch) | |
tree | 55786772bf8f6d419f8a02f1838bde8b593e497f /sys/kern/kern_fork.c | |
parent | 9eb44e2a50d42aea2650694312bacb8b83a22cc5 (diff) | |
download | FreeBSD-src-171976dba2208151b69025bbf1a0b5f395ddf742.zip FreeBSD-src-171976dba2208151b69025bbf1a0b5f395ddf742.tar.gz |
MFp4:
It is possible a lower priority thread lending priority to higher priority
thread, in old code, it is ignored, however the lending should always be
recorded, add field td_lend_user_pri to fix the problem, if a thread does
not have borrowed priority, its value is PRI_MAX.
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 19d7d0f..61d9531 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -543,6 +543,7 @@ again: td2->td_sigstk = td->td_sigstk; td2->td_sigmask = td->td_sigmask; td2->td_flags = TDF_INMEM; + td2->td_lend_user_pri = PRI_MAX; #ifdef VIMAGE td2->td_vnet = NULL; |