Skip to content

Commit 5219a26

Browse files
amotinbehlendorf
authored andcommitted
FreeBSD: Remove extra arc_reduce_target_size() call
Remove arc_reduce_target_size() call from arc_prune_task(). The idea of arc_prune_task() is to remove external references on ARC metadata, such as vnodes. Since arc_prune_async() is called only from ARC itself, it makes no sense to create a parasitic loop between ARC eviction and the pruning, treatening to drop ARC to its minimum. I can't guess why it was added as part of FreeBSD to OpenZFS integration. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #14639
1 parent 48f376b commit 5219a26

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

module/os/freebsd/zfs/arc_os.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ arc_prune_task(void *arg)
160160
{
161161
int64_t nr_scan = (intptr_t)arg;
162162

163-
arc_reduce_target_size(ptob(nr_scan));
164-
165163
#ifndef __ILP32__
166164
if (nr_scan > INT_MAX)
167165
nr_scan = INT_MAX;

0 commit comments

Comments
 (0)