Date: Wed, 15 Sep 2010 08:07:58 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r212640 - stable/7/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201009150807.o8F87wMI026478@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Wed Sep 15 08:07:58 2010 New Revision: 212640 URL: http://svn.freebsd.org/changeset/base/212640 Log: MFC r211762: zfs arc_reclaim_thread: no need to call arc_reclaim_needed when resetting needfree Modified: stable/7/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c ============================================================================== --- stable/7/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Wed Sep 15 08:03:23 2010 (r212639) +++ stable/7/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Wed Sep 15 08:07:58 2010 (r212640) @@ -1990,12 +1990,12 @@ arc_reclaim_thread(void *dummy __unused) if (arc_eviction_list != NULL) arc_do_user_evicts(); - if (arc_reclaim_needed()) { - needfree = 0; #ifdef _KERNEL + if (needfree) { + needfree = 0; wakeup(&needfree); -#endif } +#endif /* block until needed, or one second, whichever is shorter */ CALLB_CPR_SAFE_BEGIN(&cpr);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009150807.o8F87wMI026478>