Module Name: src
Committed By: rin
Date: Mon May 29 08:00:05 UTC 2023
Modified Files:
src/sys/dev/pci: if_aq.c
Log Message:
aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.
XXX
Pull up to netbsd-10 and netbsd-9.
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/pci/if_aq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_aq.c
diff -u src/sys/dev/pci/if_aq.c:1.44 src/sys/dev/pci/if_aq.c:1.45
--- src/sys/dev/pci/if_aq.c:1.44 Thu Jan 26 01:24:19 2023
+++ src/sys/dev/pci/if_aq.c Mon May 29 08:00:05 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aq.c,v 1.44 2023/01/26 01:24:19 ryo Exp $ */
+/* $NetBSD: if_aq.c,v 1.45 2023/05/29 08:00:05 rin Exp $ */
/**
* aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.44 2023/01/26 01:24:19 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.45 2023/05/29 08:00:05 rin 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;
}