Brian Atkinson e4d3d77684
Fixing gang ABD child removal race condition
On linux the list debug code has been setting off a failure when
checking that the node->next->prev value is pointing back at the node.
At times this check evaluates to 0xdead. When removing a child from a
gang ABD we must acquire the child's abd_mtx to make sure that the
same ABD is not being added to another gang ABD while it is being
removed from a gang ABD. This fixes a race condition when checking
if an ABDs link is already active and part of another gang ABD before
adding it to a gang.

Added additional debug code for the gang ABD in abd_verify() to make
sure each child ABD has active links. Also check to make sure another
gang ABD is not added to a gang ABD.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #10511
2020-07-14 11:04:35 -07:00
..
2020-06-18 12:21:25 -07:00
2019-07-26 10:54:14 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2020-06-09 21:24:09 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:18 -07:00
2019-12-03 09:51:44 -08:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:20:38 -07:00
2020-06-09 21:24:09 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-07-03 11:05:50 -07:00
2019-09-02 17:56:41 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2017-10-11 16:54:48 -04:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-07-03 11:05:50 -07:00
2020-06-18 12:20:38 -07:00
2019-06-19 09:48:12 -07:00
2019-10-11 10:13:21 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-07-03 11:05:50 -07:00
2020-07-03 11:05:50 -07:00
2019-10-09 10:36:03 -07:00
2020-06-18 12:20:38 -07:00
2020-07-03 11:05:50 -07:00
2020-07-03 11:05:50 -07:00
2019-06-20 18:29:02 -07:00
2020-07-03 11:05:50 -07:00
2020-06-09 21:24:09 -07:00
2020-06-18 12:21:32 -07:00
2020-06-09 21:24:09 -07:00
2020-07-03 11:05:50 -07:00
2020-06-09 10:15:08 -07:00
2020-06-09 10:15:08 -07:00
2020-07-03 11:05:50 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-06-18 12:20:38 -07:00
2020-07-03 11:05:50 -07:00
2020-06-18 12:21:32 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:18 -07:00
2019-07-26 10:54:14 -07:00
2020-06-09 21:24:09 -07:00