Files
mirror_zfs/module/zfs
Tom Caputi edc1e713c2 Fix race in dnode_check_slots_free()
Currently, dnode_check_slots_free() works by checking dn->dn_type
in the dnode to determine if the dnode is reclaimable. However,
there is a small window of time between dnode_free_sync() in the
first call to dsl_dataset_sync() and when the useraccounting code
is run when the type is set DMU_OT_NONE, but the dnode is not yet
evictable, leading to crashes. This patch adds the ability for
dnodes to track which txg they were last dirtied in and adds a
check for this before performing the reclaim.

This patch also corrects several instances when dn_dirty_link was
treated as a list_node_t when it is technically a multilist_node_t.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7147 
Closes #7388
2018-04-10 11:15:05 -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
2018-04-10 11:15:05 -07:00
2015-01-16 14:41:26 -08:00
2017-11-15 17:27:01 -08:00
2018-04-10 11:15:05 -07:00
2018-04-10 11:15:05 -07: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
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-04-06 13:29:11 -07:00
2016-04-21 09:49:25 -07:00
2018-03-21 08:42:13 -07:00
2018-03-15 10:53:58 -07: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
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2017-07-13 13:54:00 -04:00
2018-03-16 16:46:06 -07:00
2016-11-29 14:34:33 -08:00
2018-03-13 10:43:14 -07: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
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-21 08:42:13 -07:00
2018-03-31 11:12:51 -07: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