Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet make ipfr_lock IPL_VM as ip_reass_drain is calle...
details: https://anonhg.NetBSD.org/src/rev/345184eb3373
branches: trunk
changeset: 757956:345184eb3373
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Oct 07 03:15:49 2010 +0000
description:
make ipfr_lock IPL_VM as ip_reass_drain is called in interrupts via
the drain hook for mbuf pools.
diffstat:
sys/netinet/ip_reass.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2a05986764f5 -r 345184eb3373 sys/netinet/ip_reass.c
--- a/sys/netinet/ip_reass.c Thu Oct 07 02:14:02 2010 +0000
+++ b/sys/netinet/ip_reass.c Thu Oct 07 03:15:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_reass.c,v 1.5 2010/10/06 07:39:37 enami Exp $ */
+/* $NetBSD: ip_reass.c,v 1.6 2010/10/07 03:15:49 yamt Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_reass.c,v 1.5 2010/10/06 07:39:37 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_reass.c,v 1.6 2010/10/07 03:15:49 yamt Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -152,7 +152,7 @@
ipfren_cache = pool_cache_init(sizeof(ipfr_qent_t), coherency_unit,
0, 0, "ipfrenpl", NULL, IPL_NET, NULL, NULL, NULL);
- mutex_init(&ipfr_lock, MUTEX_DEFAULT, IPL_SOFTNET);
+ mutex_init(&ipfr_lock, MUTEX_DEFAULT, IPL_VM);
for (i = 0; i < IPREASS_HASH_SIZE; i++) {
LIST_INIT(&ip_frags[i]);
Home |
Main Index |
Thread Index |
Old Index