Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xenbus xlwp->mtx will never be used in interrup...



details:   https://anonhg.NetBSD.org/src/rev/5037a7701257
branches:  trunk
changeset: 352266:5037a7701257
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Mar 23 14:52:36 2017 +0000

description:
xlwp->mtx will never be used in interrupt context; set to IPL_NONE.
avoids a KASSERT when sleeping for the reply.

diffstat:

 sys/arch/xen/xenbus/xenbus_dev.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 69a47605ae05 -r 5037a7701257 sys/arch/xen/xenbus/xenbus_dev.c
--- a/sys/arch/xen/xenbus/xenbus_dev.c  Thu Mar 23 12:31:57 2017 +0000
+++ b/sys/arch/xen/xenbus/xenbus_dev.c  Thu Mar 23 14:52:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus_dev.c,v 1.12 2017/03/22 22:33:32 bouyer Exp $ */
+/* $NetBSD: xenbus_dev.c,v 1.13 2017/03/23 14:52:36 bouyer Exp $ */
 /*
  * xenbus_dev.c
  * 
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenbus_dev.c,v 1.12 2017/03/22 22:33:32 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenbus_dev.c,v 1.13 2017/03/23 14:52:36 bouyer Exp $");
 
 #include "opt_xen.h"
 
@@ -374,7 +374,7 @@
                memset(xlwp, 0, sizeof(*xlwp));
                xlwp->lwp = curlwp;   
                SLIST_INIT(&xlwp->transactions);
-               mutex_init(&xlwp->mtx, MUTEX_DEFAULT, IPL_VM);
+               mutex_init(&xlwp->mtx, MUTEX_DEFAULT, IPL_NONE);
                SLIST_INSERT_HEAD(&u->lwps,
                    xlwp, lwp_next);  
        }



Home | Main Index | Thread Index | Old Index