Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2016 21:13:33 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300627 - head/sys/kern
Message-ID:  <201605242113.u4OLDXao036155@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue May 24 21:13:33 2016
New Revision: 300627
URL: https://svnweb.freebsd.org/changeset/base/300627

Log:
  Silence false LOR report due to the taskqueue mutex and kqueue lock
  named the same.
  
  Reported by:	Doug Luce <doug@freebsd.con.com>
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/kern_event.c

Modified: head/sys/kern/kern_event.c
==============================================================================
--- head/sys/kern/kern_event.c	Tue May 24 21:09:05 2016	(r300626)
+++ head/sys/kern/kern_event.c	Tue May 24 21:13:33 2016	(r300627)
@@ -91,7 +91,7 @@ MTX_SYSINIT(kq_global, &kq_global, "kque
 	haslck = 0;				\
 } while (0)
 
-TASKQUEUE_DEFINE_THREAD(kqueue);
+TASKQUEUE_DEFINE_THREAD(kqueue_ctx);
 
 static int	kevent_copyout(void *arg, struct kevent *kevp, int count);
 static int	kevent_copyin(void *arg, struct kevent *kevp, int count);
@@ -1426,7 +1426,7 @@ kqueue_schedtask(struct kqueue *kq)
 	    ("scheduling kqueue task while draining"));
 
 	if ((kq->kq_state & KQ_TASKSCHED) != KQ_TASKSCHED) {
-		taskqueue_enqueue(taskqueue_kqueue, &kq->kq_task);
+		taskqueue_enqueue(taskqueue_kqueue_ctx, &kq->kq_task);
 		kq->kq_state |= KQ_TASKSCHED;
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605242113.u4OLDXao036155>