Source-Changes-HG archive

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

[src/netbsd-10]: src/sys/dev/pci Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/9a70436e9b8b
branches:  netbsd-10
changeset: 376159:9a70436e9b8b
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jun 03 14:44:34 2023 +0000

description:
Pull up following revision(s) (requested by rin in ticket #187):

        sys/dev/pci/if_aq.c: revision 1.45

aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.

diffstat:

 sys/dev/pci/if_aq.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 46ee90e15577 -r 9a70436e9b8b sys/dev/pci/if_aq.c
--- a/sys/dev/pci/if_aq.c       Sat Jun 03 14:40:25 2023 +0000
+++ b/sys/dev/pci/if_aq.c       Sat Jun 03 14:44:34 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aq.c,v 1.39.2.1 2023/01/30 11:52:22 martin Exp $    */
+/*     $NetBSD: if_aq.c,v 1.39.2.2 2023/06/03 14:44:34 martin Exp $    */
 
 /**
  * aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.39.2.1 2023/01/30 11:52:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.39.2.2 2023/06/03 14:44:34 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_if_aq.h"
@@ -5901,7 +5901,9 @@ aq_transmit(struct ifnet *ifp, struct mb
                aq_send_common_locked(ifp, sc, txring, true);
                mutex_exit(&txring->txr_mutex);
        } else {
+               kpreempt_disable();
                softint_schedule(txring->txr_softint);
+               kpreempt_enable();
        }
        return 0;
 }



Home | Main Index | Thread Index | Old Index