diff options
author | arr <arr@FreeBSD.org> | 2002-05-24 00:39:58 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-05-24 00:39:58 +0000 |
commit | 0239286d2c509dd5fb5136bf070206cb641023f1 (patch) | |
tree | 04d4572458bd827a7bd3300d9f1628f4733762c9 /sys/netatm/spans/spans_proto.c | |
parent | d756e3ff88238ac6a0deb498bda602333d20ddb3 (diff) | |
download | FreeBSD-src-0239286d2c509dd5fb5136bf070206cb641023f1.zip FreeBSD-src-0239286d2c509dd5fb5136bf070206cb641023f1.tar.gz |
- Remove a few storage pools and replace them with UMA zones. The spans
code is now storage pool free, so I believe this only leaves the uni
base not cleaned.
Diffstat (limited to 'sys/netatm/spans/spans_proto.c')
-rw-r--r-- | sys/netatm/spans/spans_proto.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netatm/spans/spans_proto.c b/sys/netatm/spans/spans_proto.c index c287736..7562820 100644 --- a/sys/netatm/spans/spans_proto.c +++ b/sys/netatm/spans/spans_proto.c @@ -279,8 +279,9 @@ spans_timer(tip) /* * Send out SPANS_STAT_REQ message */ - msg = (spans_msg *)atm_allocate(&spans_msgpool); + msg = uma_zalloc(spans_msg_zone, M_WAITOK); if (msg == NULL) { + /* XXX arr: This is bogus and will go away RSN */ /* Retry later if no memory */ SPANS_TIMER(spp, SPANS_PROBE_ERR_WAIT); break; @@ -291,10 +292,10 @@ spans_timer(tip) if (spans_send_msg(spp, msg)) { /* Retry later if send fails */ SPANS_TIMER(spp, SPANS_PROBE_ERR_WAIT); - atm_free(msg); + uma_zfree(spans_msg_zone, msg); break; } - atm_free(msg); + uma_zfree(spans_msg_zone, msg); spp->sp_probe_ct++; /* |