diff options
author | Jingbo Xu <[email protected]> | 2023-08-22 19:05:30 +0800 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2023-08-23 23:57:03 +0800 |
commit | 91b1ad0815fbb1095c8b9e8a2bf4201186afe304 (patch) | |
tree | 43379ef715b57697e266f7dd2a084da78387fcaf /rust/helpers.c | |
parent | 5ec693ca70dd88db20094cab9aa045852363b93f (diff) |
erofs: release ztailpacking pclusters properly
Currently ztailpacking pclusters are chained with FOLLOWED_NOINPLACE and
not recorded into the managed_pslots XArray.
After commit 7674a42f35ea ("erofs: use struct lockref to replace
handcrafted approach"), ztailpacking pclusters won't be freed with
erofs_workgroup_put() anymore, which will cause the following issue:
BUG erofs_pcluster-1 (Tainted: G OE ): Objects remaining in erofs_pcluster-1 on __kmem_cache_shutdown()
Use z_erofs_free_pcluster() directly to free ztailpacking pclusters.
Fixes: 7674a42f35ea ("erofs: use struct lockref to replace handcrafted approach")
Signed-off-by: Jingbo Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions