Date: Fri, 20 Oct 2017 08:25:50 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324793 - head/sys/vm Message-ID: <201710200825.v9K8PoYa036640@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Oct 20 08:25:49 2017 New Revision: 324793 URL: https://svnweb.freebsd.org/changeset/base/324793 Log: In vm_page_free_phys_pglist(), do not take vm_page_queue_free_mtx if there is nothing to do. Suggested by: mjg Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Fri Oct 20 08:20:15 2017 (r324792) +++ head/sys/vm/vm_page.c Fri Oct 20 08:25:49 2017 (r324793) @@ -2857,6 +2857,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?201710200825.v9K8PoYa036640>