zfs/lib/libspl
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
..
asm-generic Fix atomic_clear_long_excl wrong return 2020-07-06 11:46:17 -07:00
asm-i386 Fixes for make dist 2020-06-26 14:20:02 -07:00
asm-x86_64 Fixes for make dist 2020-06-26 14:20:02 -07:00
include Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
os Add include files for prototypes 2020-06-18 12:21:25 -07:00
Makefile.am Clean up lib dependencies 2020-07-10 14:26:00 -07:00
assert.c Move libspl_assertf into .c file 2020-07-10 14:25:24 -07:00
list.c Fixing gang ABD child removal race condition 2020-07-14 11:04:35 -07:00
mkdirp.c Fix typos in lib/ 2019-09-02 17:53:27 -07:00
page.c ABD optimized page allocation code 2016-11-29 14:34:33 -08:00
strlcat.c Check for strlcat and strlcpy 2018-12-11 16:01:41 -08:00
strlcpy.c Check for strlcat and strlcpy 2018-12-11 16:01:41 -08:00
timestamp.c Always use "%lld" for formatting time_ts 2020-05-28 10:29:58 -07:00
zone.c Move libspl_assertf into .c file 2020-07-10 14:25:24 -07:00