Author: avg
Date: Wed Sep 15 08:03:23 2010
New Revision: 212639
URL: http://svn.freebsd.org/changeset/base/212639

Log:
  MFC r211762: zfs arc_reclaim_thread: no need to call arc_reclaim_needed
  when resetting needfree

Modified:
  stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c       Wed Sep 
15 07:30:27 2010        (r212638)
+++ stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c       Wed Sep 
15 08:03:23 2010        (r212639)
@@ -2277,12 +2277,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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to