Files
mirror_zfs/module/zfs
Olaf Faaland bc5f51c5de module param callbacks check for initialized spa
Callbacks provided for module parameters are executed both
after the module is loaded, when a user alters it via sysfs, e.g
	echo bar > /sys/modules/zfs/parameters/foo

as well as when the module is loaded with an argument, e.g.
	modprobe zfs foo=bar

In the latter case, the init functions likely have not run yet,
including spa_init() which initializes the namespace lock so it is safe
to use.

Instead of immediately taking the namespace lock and attemping to
iterate over initialized spa structures, check whether spa_mode_global
is nonzero.  This is set by spa_init() after it has initialized the
namespace lock.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7496 
Closes #7521
2018-05-11 12:46:07 -07:00
..
2017-11-18 14:08:00 -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
2018-05-01 11:24:20 -07:00
2018-05-01 10:33:35 -07:00
2017-08-14 10:36:48 -07:00
2017-10-11 16:54:48 -04:00
2015-01-16 14:41:26 -08:00
2016-04-21 09:49:25 -07:00
2018-03-15 10:53:58 -07:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2017-07-13 13:54:00 -04:00
2016-11-29 14:34:33 -08:00
2018-05-08 21:39:50 -07:00
2018-02-08 15:28:18 -08:00
2018-04-15 10:59:13 -07:00
2010-08-31 13:41:58 -07:00
2017-03-10 09:51:33 -08:00
2018-05-07 21:11:58 -07: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-09 10:08:05 -08:00
2018-05-02 15:01:24 -07:00
2017-11-18 14:08:00 -08:00
2018-04-15 15:12:28 -07:00