]> granicus.if.org Git - zfs/commit
Handle zio_resume and mmp => off
authorOlaf Faaland <faaland1@llnl.gov>
Thu, 8 Mar 2018 23:21:54 +0000 (15:21 -0800)
committerTony Hutter <hutter2@llnl.gov>
Wed, 14 Mar 2018 23:10:38 +0000 (16:10 -0700)
commit267fd7b0f14251026c35d7ceab4fbbe2f06717e6
tree385b3c50eddc277d3b159007287b8093e1e6aec4
parentdc0176eeec9719827610fc68742ea3c76796a81f
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