+18
−35
Loading
When write_zeroes enters io_wait_queue due to resource exhaustion, it may lead to all io resource leaked and IO hangs. The issue occurs because spdk_bdev_write_zeroes_blocks acquires an IO resource, but bdev_write_blocks_with_md requests another, fails to obtain it, and re-enters the wait queue without releasing the previously acquired resource. Change-Id: I8c9b227db2dc55352d1ba45df6667c94e85d5d5f Signed-off-by:Yalong Wang <yalong9@staff.sina.com.cn> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25663 Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>