svn commit: r207571 - head/sys/dev/ti

Alan Cox alc at FreeBSD.org
Mon May 3 15:52:00 UTC 2010


Author: alc
Date: Mon May  3 15:51:59 2010
New Revision: 207571
URL: http://svn.freebsd.org/changeset/base/207571

Log:
  Neither the page lock nor the page queues lock is required to unwire and
  free a VM_ALLOC_NOOBJ page.  (Such pages are unmanaged.)

Modified:
  head/sys/dev/ti/if_ti.c

Modified: head/sys/dev/ti/if_ti.c
==============================================================================
--- head/sys/dev/ti/if_ti.c	Mon May  3 14:30:49 2010	(r207570)
+++ head/sys/dev/ti/if_ti.c	Mon May  3 15:51:59 2010	(r207571)
@@ -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);


More information about the svn-src-all mailing list