+12
−1
+3
−0
Loading
The buffer new_cluster_page was meant for cluster allocation and its reuse is guarded by need_cluster_alloc. Commit 41fd1f6b also used it for unmap, risking concurrent reuse and corruption. Fix by introducing a separate buffer for cluster release to avoid interference with allocation. Change-Id: I42566ea6441ffe2dbbfb059578a25dd959fa8d84 Signed-off-by:Yalong Wang <yalong9@staff.sina.com.cn> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26196 Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Tomasz Zawadzki <tomasz@tzawadzki.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@nvidia.com>