]> git.proxmox.com Git - mirror_zfs.git/commit
Fix txg_wait_open() load average inflation
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Apr 2019 16:44:46 +0000 (09:44 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 16:44:46 +0000 (09:44 -0700)
commitf4e35b165c1a3dff5c635fe89e7a52277731ca56
tree94e34a8d8edcc0a2613d9ee4438b3f6f4104ec95
parentce4432c5424eb9aa4d00833ee7529cf24491bdde
Fix txg_wait_open() load average inflation

Callers of txg_wait_open() which set should_quiesce=B_TRUE should be
accounted for as iowait time.  Otherwise, the caller is understood
to be idle and cv_wait_sig() is used to prevent incorrectly inflating
the system load average.

Similarly txg_wait_wait() has been updated to use cv_wait_io() to
be accounted against iowait.

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8550
Closes #8558
module/zfs/txg.c
module/zfs/zthr.c