看板 FB_bugs 關於我們 聯絡資訊
>Number: 136159 >Category: kern >Synopsis: tsleep with PDROP in kthread_suspend() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 29 11:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sebastian Huber >Release: -current >Organization: embedded brains GmbH >Environment: source code >Description: tsleep() with PDROP makes no sense. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: kern/kern_kthread.c =================================================================== --- kern/kern_kthread.c (revision 195153) +++ kern/kern_kthread.c (working copy) @@ -350,7 +350,7 @@ * or we'll end up timing out */ wakeup(td); /* traditional place for kernel threads to sleep on */ /* XXX ?? */ - return (tsleep(&td->td_flags, PPAUSE | PDROP, "suspkt", timo)); + return (tsleep(&td->td_flags, PPAUSE, "suspkt", timo)); } /* >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"