]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Propagate extent_bytes change to autotrim thread
authorvaclavskala <33496485+vaclavskala@users.noreply.github.com>
Fri, 28 Oct 2022 17:16:31 +0000 (19:16 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 17:16:31 +0000 (10:16 -0700)
commit7822b50f548e6ca73faa6f0d2de029e981be1d73
treead917eced24276657acc9d5ff940709e00329e8e
parentdbf6108b4df92341eea40d0b41792ac16eabc514
Propagate extent_bytes change to autotrim thread

The autotrim thread only reads zfs_trim_extent_bytes_min and
zfs_trim_extent_bytes_max variable only on thread start.  We
should check for parameter changes during thread execution to
allow parameter changes take effect without needing to disable
then restart the autotrim.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Václav Skála <skala@vshosting.cz>
Closes #14077
module/zfs/vdev_trim.c