]> git.proxmox.com Git - mirror_zfs.git/commit
Handle zio_resume and mmp => off
authorOlaf Faaland <faaland1@llnl.gov>
Thu, 8 Mar 2018 23:21:54 +0000 (15:21 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Mar 2018 23:42:11 +0000 (15:42 -0800)
commitebed90a598677dfba76c95cf184549dbc1cb6be5
tree7cc809a7486f50ce8952dac4518fb5895df38a56
parent5ee220ba5c825263ce6f77106914bda35e60ef06
Handle zio_resume and mmp => off

When multihost is disabled on a pool, and the pool is resumed via zpool
clear, within a single cycle of the mmp thread's loop (e.g.  while it's
in the cv_timedwait call), both mmp_last_write and mmp_delay should be
updated.

The original code mistakenly treated the two cases as if they could not
occur at the same time.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7286
module/zfs/mmp.c