summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-01 18:38:36 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-01 18:38:36 +0000
commit5984810c66f30b641b390b9311110fbdae8770df (patch)
tree0da1aec9447f235cf5ddbdd5af66850f54eba544 /sys/net
parent7844befc0ce2c9d1473df453ac7ff659e65856ae (diff)
downloadFreeBSD-src-5984810c66f30b641b390b9311110fbdae8770df.zip
FreeBSD-src-5984810c66f30b641b390b9311110fbdae8770df.tar.gz
Revert a recent netisr2 change: when billing packets to the current
CPU, don't lock the workstream, as its mutexes may not have been initialized if there are fewer workstreams than CPUs. Run into by: hps, ps
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/netisr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/netisr.c b/sys/net/netisr.c
index f0b7161..da5dac4 100644
--- a/sys/net/netisr.c
+++ b/sys/net/netisr.c
@@ -893,10 +893,8 @@ netisr_dispatch_src(u_int proto, uintptr_t source, struct mbuf *m)
if (netisr_direct_force) {
nwsp = &nws[curcpu];
npwp = &nwsp->nws_work[proto];
- NWS_LOCK(nwsp);
npwp->nw_dispatched++;
npwp->nw_handled++;
- NWS_UNLOCK(nwsp);
np[proto].np_handler(m);
error = 0;
goto out_unlock;
OpenPOWER on IntegriCloud