freebsd-dev/sys/cddl
Andriy Gapon 694a0a8717 zfs arc_reclaim_thread: no need to call arc_reclaim_needed when
resetting needfree

needfree is checked at the very start of arc_reclaim_needed.
This change makes code easier to follow and maintain in face of
potential changed in arc_reclaim_needed.

Also, put the whole sub-block under _KERNEL because needfree can be set
only in kernel code.

To do: rename needfree to something else to aovid confusion with
OpenSolaris global variable of the same name which is used in the same
code, but has different meaning (page deficit).

Note: I have an impression that locking around accesses to this variable
as well as mutual notifications between arc_reclaim_thread and
arc_lowmem are not proper.

MFC after:	1 week
2010-08-24 17:48:22 +00:00
..
boot/zfs Merge ZFS version 15 and almost all OpenSolaris bugfixes referenced 2010-07-12 23:49:04 +00:00
compat/opensolaris Add a sysname char * to struct opensolaris_utsname. 2010-08-21 14:09:24 +00:00
contrib/opensolaris zfs arc_reclaim_thread: no need to call arc_reclaim_needed when 2010-08-24 17:48:22 +00:00
dev Destroy the helper device when unloading. 2010-08-22 11:05:37 +00:00