HomeFreeBSD

Propagate extent_bytes change to autotrim thread

Description

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

Details

Provenance
vaclavskala <33496485+vaclavskala@users.noreply.github.com>Authored on Oct 28 2022, 5:16 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 1 2022, 7:48 PM
Parents
rG212ba9bd9722: Linux 6.1 compat: change order of sys/mutex.h includes
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8929355b4cdb: Propagate extent_bytes change to autotrim thread (authored by vaclavskala <33496485+vaclavskala@users.noreply.github.com>).Nov 1 2022, 7:48 PM