aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2020-12-14 10:10:48 +0000
committerDavid Sterba <[email protected]>2020-12-18 15:00:06 +0100
commit0a31daa4b602ff6861fdf182236d64b2a353bace (patch)
treee3e5ba46c24517c559b495bb29a43c123f7a2358 /lib/mpi/mpi-add.c
parenta0a1db70df5f48576fea6d08f0a69c05f3ab4cf4 (diff)
btrfs: add assertion for empty list of transactions at late stage of umount
Add an assertion to close_ctree(), after destroying all the work queues, to verify we do not have any transaction still open or committing at that at that point. If we have any, it means something is seriously wrong and that can cause memory leaks and use-after-free problems. This is motivated by the previous patches that fixed bugs where we ended up leaking an open transaction after unmounting the filesystem. Tested-by: Fabian Vogt <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions