Explicitly start ARC adjustment on limits change.

While formally it is not necessary, but the sooner it start, the sooner it
finish, and supposedly less disturbing for workload it will be.

MFC after:	2 weeks
This commit is contained in:
mav 2019-06-07 19:03:17 +00:00
parent 6ee41e4baf
commit 83ee51bf02

View File

@ -1233,6 +1233,12 @@ sysctl_vfs_zfs_arc_meta_limit(SYSCTL_HANDLER_ARGS)
return (EINVAL);
arc_meta_limit = val;
mutex_enter(&arc_adjust_lock);
arc_adjust_needed = B_TRUE;
mutex_exit(&arc_adjust_lock);
zthr_wakeup(arc_adjust_zthr);
return (0);
}
@ -1294,6 +1300,11 @@ sysctl_vfs_zfs_arc_max(SYSCTL_HANDLER_ARGS)
zfs_arc_max = arc_c;
mutex_enter(&arc_adjust_lock);
arc_adjust_needed = B_TRUE;
mutex_exit(&arc_adjust_lock);
zthr_wakeup(arc_adjust_zthr);
return (0);
}