Files
mirror_zfs/module/zfs
GeLiXin b7faa7aabd Fix self-healing IO prior to dsl_pool_init() completion
Async writes triggered by a self-healing IO may be issued before the
pool finishes the process of initialization.  This results in a NULL
dereference of `spa->spa_dsl_pool` in vdev_queue_max_async_writes().

George Wilson recommended addressing this issue by initializing the
passed `dsl_pool_t **` prior to dmu_objset_open_impl().  Since the
caller is passing the `spa->spa_dsl_pool` this has the effect of
ensuring it's initialized.

However, since this depends on the caller knowing they must pass
the `spa->spa_dsl_pool` an additional NULL check was added to
vdev_queue_max_async_writes().  This guards against any future
restructuring of the code which might result in dsl_pool_init()
being called differently.

Signed-off-by: GeLiXin <47034221@qq.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4652
2016-05-27 14:11:25 -07:00
..
2016-05-25 14:11:53 -07:00
2014-08-01 14:28:05 -07:00
2015-01-16 14:41:26 -08:00
2016-01-08 15:08:19 -08:00
2016-01-08 20:23:23 -05:00
2015-01-16 14:41:26 -08:00
2016-01-08 15:08:19 -08:00
2016-01-08 15:08:19 -08:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2016-04-21 09:49:25 -07:00
2015-12-22 10:21:33 -08:00
2016-04-21 09:49:25 -07:00
2015-01-16 14:41:26 -08:00
2015-12-30 13:20:12 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2016-05-02 14:27:45 -07:00
2016-01-08 15:08:19 -08:00
2015-01-16 14:41:26 -08:00
2016-01-13 13:55:12 -08:00
2015-01-16 14:41:26 -08:00
2013-10-31 14:58:04 -07:00
2016-04-05 18:54:55 -07:00
2010-08-31 13:41:58 -07:00
2016-05-19 13:06:14 -07:00
2015-09-04 16:08:14 -07:00
2016-04-05 18:54:55 -07:00
2013-10-30 14:51:27 -07:00
2016-05-17 10:29:02 -07:00
2016-05-19 13:06:14 -07:00
2016-01-15 15:33:45 -08:00
2016-05-19 13:06:14 -07:00
2014-08-01 14:28:05 -07:00
2016-04-21 09:49:25 -07:00