Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/common/linux Workqueue lock must be at IPL_...



details:   https://anonhg.NetBSD.org/src/rev/7a7740af3073
branches:  trunk
changeset: 366405:7a7740af3073
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:25:43 2018 +0000

description:
Workqueue lock must be at IPL_VM for use in interrupts, duh.

diffstat:

 sys/external/bsd/common/linux/linux_work.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r db14b6f40c7e -r 7a7740af3073 sys/external/bsd/common/linux/linux_work.c
--- a/sys/external/bsd/common/linux/linux_work.c        Mon Aug 27 15:25:28 2018 +0000
+++ b/sys/external/bsd/common/linux/linux_work.c        Mon Aug 27 15:25:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_work.c,v 1.42 2018/08/27 15:07:44 riastradh Exp $        */
+/*     $NetBSD: linux_work.c,v 1.43 2018/08/27 15:25:43 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.42 2018/08/27 15:07:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.43 2018/08/27 15:25:43 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -204,7 +204,7 @@
 
        wq = kmem_zalloc(sizeof(*wq), KM_SLEEP);
 
-       mutex_init(&wq->wq_lock, MUTEX_DEFAULT, IPL_NONE);
+       mutex_init(&wq->wq_lock, MUTEX_DEFAULT, IPL_VM);
        cv_init(&wq->wq_cv, name);
        TAILQ_INIT(&wq->wq_delayed);
        TAILQ_INIT(&wq->wq_queue);



Home | Main Index | Thread Index | Old Index