NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/54273 CVS commit: src/external/cddl/osnet/sys/kern



The following reply was made to PR port-xen/54273; it has been noted by GNATS.

From: "Juergen Hannken-Illjes" <hannken%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/54273 CVS commit: src/external/cddl/osnet/sys/kern
Date: Tue, 11 Jun 2019 09:05:34 +0000

 Module Name:	src
 Committed By:	hannken
 Date:		Tue Jun 11 09:05:33 UTC 2019
 
 Modified Files:
 	src/external/cddl/osnet/sys/kern: taskq.c
 
 Log Message:
 There is no 1:1 relation between cv_signal() and cv_timedwait() as
 the latter implicitly calls cv_signal() on error.
 
 This leads to "tq_waiting > 0" with "tq_running == 0" and the
 taskq stalls.
 
 Change task_executor() to increment and decrement "tq_waiting"
 and always check and run the queue after cv_timedwait().
 
 Use mstohz(), fix timeout and sort includes.
 
 Addresses PR port-xen/54273: "zpool create pool xbd2" panics DOMU kernel
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/external/cddl/osnet/sys/kern/taskq.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index