summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-05-03 15:51:59 +0000
committeralc <alc@FreeBSD.org>2010-05-03 15:51:59 +0000
commit425dc5ab94cdbb6f198795a09b2c4330721536c0 (patch)
tree082c40946c3f017ab5b6b1319ca93216d31aacab /sys/dev/ti
parent6e9b1a98198b959748ee45e847e15c3ad02dbb6b (diff)
downloadFreeBSD-src-425dc5ab94cdbb6f198795a09b2c4330721536c0.zip
FreeBSD-src-425dc5ab94cdbb6f198795a09b2c4330721536c0.tar.gz
Neither the page lock nor the page queues lock is required to unwire and
free a VM_ALLOC_NOOBJ page. (Such pages are unmanaged.)
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 20130bc..7eeee36 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -1488,10 +1488,8 @@ ti_newbuf_jumbo(sc, idx, m_old)
}
sf[i] = sf_buf_alloc(frame, SFB_NOWAIT);
if (sf[i] == NULL) {
- vm_page_lock_queues();
vm_page_unwire(frame, 0);
vm_page_free(frame);
- vm_page_unlock_queues();
device_printf(sc->ti_dev, "buffer allocation "
"failed -- packet dropped!\n");
printf(" index %d page %d\n", idx, i);
OpenPOWER on IntegriCloud