Brian Behlendorf b7eec00f9f
Fix MMP write frequency for large pools
When a single pool contains more vdevs than the CONFIG_HZ for
for the kernel the mmp thread will not delay properly.  Switch
to using cv_timedwait_sig_hires() to handle higher resolution
delays.

This issue was reported on Arch Linux where HZ defaults to only
100 and this could be fairly easily reproduced with a reasonably
large pool.  Most distribution kernels set CONFIG_HZ=250 or
CONFIG_HZ=1000 and thus are unlikely to be impacted.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7205 
Closes #7289
2018-03-12 11:26:05 -07:00
..
2017-11-18 14:08:00 -08:00
2018-02-23 08:50:06 -08:00
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2015-01-16 14:41:26 -08:00
2017-11-15 17:27:01 -08:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-02-08 15:28:18 -08:00
2018-02-13 14:54:54 -08:00
2017-08-14 10:36:48 -07:00
2018-02-13 14:54:54 -08:00
2018-03-09 13:37:15 -08:00
2017-10-11 16:54:48 -04:00
2015-01-16 14:41:26 -08:00
2018-03-09 13:37:15 -08:00
2017-11-15 17:27:01 -08:00
2018-03-12 11:26:05 -07:00
2016-04-21 09:49:25 -07:00
2018-03-09 13:37:15 -08:00
2018-03-09 13:37:15 -08:00
2018-03-09 13:37:15 -08:00
2018-03-09 13:37:15 -08:00
2017-11-15 17:27:01 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2010-08-31 13:41:58 -07:00
2018-03-09 13:37:15 -08:00
2018-02-13 14:54:54 -08:00
2017-07-13 13:54:00 -04:00
2016-11-29 14:34:33 -08:00
2018-03-09 15:42:54 -08:00
2018-02-08 15:28:18 -08:00
2018-02-13 14:54:54 -08:00
2010-08-31 13:41:58 -07:00
2018-02-13 14:54:54 -08:00
2017-03-10 09:51:33 -08:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-03-09 13:37:15 -08:00
2018-02-09 10:08:05 -08:00
2018-02-13 14:54:54 -08:00
2017-11-18 14:08:00 -08:00