Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove wrong KASSERTs because mutex_owned for a ...



details:   https://anonhg.NetBSD.org/src/rev/74f1439dadf9
branches:  trunk
changeset: 744757:74f1439dadf9
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Feb 12 06:41:44 2020 +0000

description:
Remove wrong KASSERTs because mutex_owned for a spin lock doesn't check
that a lock is held in the current context.

diffstat:

 sys/dev/pci/if_ixl.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r 786142f9b1f2 -r 74f1439dadf9 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Wed Feb 12 06:37:21 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Wed Feb 12 06:41:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.41 2020/02/12 06:37:21 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.42 2020/02/12 06:41:44 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -3399,9 +3399,6 @@
        int txmore, rxmore;
        int rv;
 
-       KASSERT(!mutex_owned(&txr->txr_lock));
-       KASSERT(!mutex_owned(&rxr->rxr_lock));
-
        mutex_enter(&txr->txr_lock);
        txevcnt->ev_count++;
        txmore = ixl_txeof(sc, txr, txlimit);



Home | Main Index | Thread Index | Old Index