HomeFreeBSD

Handle zio_resume and mmp => off

Description

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

Details

Provenance
Olaf Faaland <faaland1@llnl.gov>Authored on Mar 8 2018, 11:21 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 9 2018, 11:42 PM
Parents
rG5ee220ba5c82: Document allowed pool names
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGebed90a59867: Handle zio_resume and mmp => off (authored by Olaf Faaland <faaland1@llnl.gov>).Mar 9 2018, 11:42 PM