Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/linux Linux wq locks are taken with sp...



details:   https://anonhg.NetBSD.org/src/rev/f8d2d32cee40
branches:  trunk
changeset: 331059:f8d2d32cee40
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 29 17:36:06 2014 +0000

description:
Linux wq locks are taken with spin locks held, so need IPL_VM.

diffstat:

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

diffs (27 lines):

diff -r f1f338a3c0e6 -r f8d2d32cee40 sys/external/bsd/drm2/linux/linux_work.c
--- a/sys/external/bsd/drm2/linux/linux_work.c  Tue Jul 29 16:19:45 2014 +0000
+++ b/sys/external/bsd/drm2/linux/linux_work.c  Tue Jul 29 17:36:06 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_work.c,v 1.6 2014/07/27 14:02:48 riastradh Exp $ */
+/*     $NetBSD: linux_work.c,v 1.7 2014/07/29 17:36:06 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.6 2014/07/27 14:02:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.7 2014/07/29 17:36:06 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -129,7 +129,7 @@
                return NULL;
        }
 
-       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);
        wq->wq_current_work = NULL;



Home | Main Index | Thread Index | Old Index