Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib/libvirtif Don't bother asserting: if we cre...



details:   https://anonhg.NetBSD.org/src/rev/71b494c72cf9
branches:  trunk
changeset: 759199:71b494c72cf9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 01 15:13:24 2010 +0000

description:
Don't bother asserting: if we create the thread without KTHREAD_MPSAFE,
it's not going to be MPSAFE.

diffstat:

 sys/rump/net/lib/libvirtif/if_virt.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 0f43b470d2ae -r 71b494c72cf9 sys/rump/net/lib/libvirtif/if_virt.c
--- a/sys/rump/net/lib/libvirtif/if_virt.c      Wed Dec 01 15:02:04 2010 +0000
+++ b/sys/rump/net/lib/libvirtif/if_virt.c      Wed Dec 01 15:13:24 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_virt.c,v 1.21 2010/11/15 20:23:11 pooka Exp $       */
+/*     $NetBSD: if_virt.c,v 1.22 2010/12/01 15:13:24 pooka Exp $       */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.21 2010/11/15 20:23:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.22 2010/12/01 15:13:24 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/condvar.h>
@@ -258,8 +258,6 @@
        pfd.fd = sc->sc_tapfd;
        pfd.events = POLLIN;
 
-       KASSERT(rump_kernel_isbiglocked());
-
        for (;;) {
                m = m_gethdr(M_WAIT, MT_DATA);
                MEXTMALLOC(m, plen, M_WAIT);



Home | Main Index | Thread Index | Old Index