Files
mirror_zfs/module/zfs
Olaf Faaland 0801e4e5c9 Initialize mmp_last_write when the mmp thread starts (#10912)
A great deal of time may go by between when mmp_init() is called and
the MMP thread starts, particularly if there are bad devices, because
there is I/O checking configs etc.  If this time is too long,

    (gethrtime() - mmp_last_write) > mmp_fail_ns

at the time the MMP thread starts.  If MMP is configured to suspend
the pool, the pool will be suspended immediately.

This can be seen in issue #10838

The value of mmp_last_write doesn't matter before the mmp thread
starts.  To give the MMP thread time to issue and land MMP writes,
initialize mmp_last_write when the MMP thread starts.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Closes #10873
2020-09-16 00:16:47 +00:00
..
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2020-01-22 13:48:59 -08:00
2019-05-07 15:18:44 -07:00
2019-05-07 15:18:44 -07:00
2018-08-15 09:53:44 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2015-01-16 14:41:26 -08:00
2019-03-29 09:13:20 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2019-09-25 11:27:48 -07:00
2019-09-25 11:27:48 -07:00
2020-05-12 10:53:32 -07:00
2019-09-25 11:27:48 -07:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2019-09-25 11:27:48 -07:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:49:07 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00
2018-05-29 16:00:33 -07:00
2020-05-12 10:53:32 -07:00
2018-02-13 14:54:54 -08:00
2020-01-22 13:48:59 -08:00
2020-05-12 10:53:32 -07:00
2020-05-12 10:53:32 -07:00
2020-01-22 13:49:04 -08:00
2020-01-22 13:48:59 -08:00
2020-01-22 13:48:59 -08:00
2018-02-09 10:08:05 -08:00
2020-01-22 13:48:59 -08:00
2018-05-29 16:00:33 -07:00