Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2017 08:53:10 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r325033 - stable/11/sys/vm
Message-ID:  <201710270853.v9R8rAJa056415@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Oct 27 08:53:09 2017
New Revision: 325033
URL: https://svnweb.freebsd.org/changeset/base/325033

Log:
  MFC r324793:
  In vm_page_free_phys_pglist(), do not take vm_page_queue_free_mtx if
  there is nothing to do.

Modified:
  stable/11/sys/vm/vm_page.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_page.c
==============================================================================
--- stable/11/sys/vm/vm_page.c	Fri Oct 27 05:04:29 2017	(r325032)
+++ stable/11/sys/vm/vm_page.c	Fri Oct 27 08:53:09 2017	(r325033)
@@ -2848,6 +2848,8 @@ vm_page_free_phys_pglist(struct pglist *tq)
 {
 	vm_page_t m;
 
+	if (TAILQ_EMPTY(tq))
+		return;
 	mtx_lock(&vm_page_queue_free_mtx);
 	TAILQ_FOREACH(m, tq, listq)
 		vm_page_free_phys(m);



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