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
2018-05-02 15:36:20 -07:00
2017-11-04 13:25:13 -07:00
2015-01-16 14:41:26 -08:00
2018-04-14 12:16:17 -07:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2018-01-29 10:24:52 -08:00
2018-04-17 11:06:54 -07:00
2015-01-16 14:41:26 -08:00
2018-04-14 12:16:17 -07:00
2018-05-01 11:24:20 -07:00
2018-04-17 11:13:57 -07:00
2018-05-01 10:33:35 -07:00
2018-05-08 08:59:24 -07:00
2018-03-30 12:10:01 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2018-04-17 11:06:54 -07:00
2018-02-02 11:43:11 -08:00
2018-04-17 11:13:57 -07:00
2017-11-04 13:25:13 -07:00
2018-05-02 15:36:20 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2016-08-31 14:35:34 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2017-08-14 10:36:48 -07:00
2018-05-04 10:47:10 -07:00
2015-05-04 09:41:10 -07:00
2017-11-04 13:25:13 -07:00
2016-11-29 14:34:27 -08:00
2017-11-28 17:33:48 -06:00
2018-03-29 17:40:34 -07:00
2017-10-11 16:54:48 -04:00
2017-05-19 13:45:46 -07:00
2015-01-16 14:41:26 -08:00
2018-04-14 12:23:53 -07:00
2018-05-01 11:15:54 -07:00
2018-05-11 12:46:07 -07:00
2017-11-04 13:25:13 -07:00
2016-04-21 09:49:25 -07:00
2018-03-07 15:40:42 -08:00
2018-05-01 20:44:24 -07:00
2018-05-01 20:44:24 -07:00
2018-03-15 10:53:58 -07:00
2018-03-29 17:40:34 -07:00
2018-04-14 12:16:17 -07:00
2017-02-28 16:10:18 -08: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
2016-11-29 14:34:27 -08:00
2010-08-31 13:41:58 -07:00
2018-05-08 21:35:27 -07:00
2017-08-14 10:36:48 -07:00
2017-10-23 09:45:59 -07:00
2018-05-08 21:45:47 -07:00
2018-03-06 15:15:15 -08:00
2018-05-08 21:35:27 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2017-07-13 13:54:00 -04:00
2016-08-31 14:35:34 -07:00
2017-11-04 13:25:13 -07:00
2018-05-11 12:46:07 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2018-04-16 12:44:40 -07:00
2018-04-20 09:53:25 -07:00
2018-05-08 21:35:27 -07:00
2018-05-08 21:35:27 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-12-15 17:31:33 -08:00
2016-12-12 10:46:26 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2018-02-08 15:28:18 -08:00
2018-04-14 12:16:17 -07:00
2018-04-30 13:05:55 -07:00
2018-05-08 21:35:27 -07:00
2018-05-08 21:39:50 -07:00
2018-04-18 14:19:50 -07:00
2018-04-18 14:19:50 -07:00
2018-04-18 14:19:50 -07:00
2018-02-20 11:19:42 -08:00
2018-02-08 15:29:24 -08:00
2018-02-08 15:28:18 -08:00
2018-02-20 11:19:42 -08:00
2018-02-08 16:05:57 -08:00
2017-11-04 13:25:13 -07:00
2018-04-15 10:59:13 -07:00
2010-08-31 13:41:58 -07:00
2017-08-02 21:16:12 -07:00
2018-03-21 15:37:32 -07:00
2018-04-18 14:19:50 -07:00
2018-03-31 11:12:51 -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
2015-06-22 17:02:13 -07:00
2018-03-04 17:34:51 -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-20 16:27:31 -08:00
2018-05-02 15:01:24 -07:00
2018-05-04 10:50:24 -07:00
2018-04-14 12:16:17 -07:00
2017-11-04 13:25:13 -07:00
2017-11-04 13:25:13 -07:00
2018-05-02 15:36:20 -07:00
2018-05-02 15:36:20 -07:00
2018-05-08 21:35:27 -07:00
2018-02-09 10:08:05 -08:00
2018-05-02 15:01:24 -07:00
2016-12-12 10:46:26 -08:00
2018-05-02 15:01:24 -07:00
2017-05-10 09:30:48 -07:00
2018-04-13 10:44:05 -07:00
2017-11-18 14:08:00 -08:00
2018-03-12 11:27:02 -07:00
2018-04-15 15:12:28 -07:00
2018-04-10 10:32:14 -07:00