Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 2010 15:52:00 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207571 - head/sys/dev/ti
Message-ID:  <201005031552.o43Fq06a023570@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005031552.o43Fq06a023570>