From 1e88aa6c0ffaf0795be33a9df2d928a633cbdec6 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 23 Mar 2021 16:17:52 -0700 Subject: [PATCH] Shutdown data after trans The data_info struct holds the data allocator that is filled by transactions as they commit. We have to free it after we've shutdown transactions. It's more like the forest in this regard so we move its desctruction down by the forest to group similar behaviour. Signed-off-by: Zach Brown --- kmod/src/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/super.c b/kmod/src/super.c index 96bc6aca..3d0d2050 100644 --- a/kmod/src/super.c +++ b/kmod/src/super.c @@ -245,7 +245,6 @@ static void scoutfs_put_super(struct super_block *sb) trace_scoutfs_put_super(sb); - scoutfs_data_destroy(sb); scoutfs_srch_destroy(sb); scoutfs_unlock(sb, sbi->rid_lock, SCOUTFS_LOCK_WRITE); @@ -258,6 +257,7 @@ static void scoutfs_put_super(struct super_block *sb) scoutfs_inode_destroy(sb); scoutfs_item_destroy(sb); scoutfs_forest_destroy(sb); + scoutfs_data_destroy(sb); scoutfs_quorum_destroy(sb); scoutfs_server_destroy(sb);