+8
−0
+6
−1
Loading
When a bdev I/O submission fails with -ENOMEM, the request is queued in the bdev I/O wait list. In certain cases, this I/O must be completed first to unblock other dependent I/Os already in progress, such as in RAID or layered bdev scenarios. Add a new boolean field 'dep_unblock' to struct spdk_bdev_io_wait_entry to mark such high-priority requests. If set, the request is inserted at the head of the wait queue instead of the tail, allowing it to get resources earlier and prevent potential deadlock. Change-Id: I7892473f9a07e948c24f595ff2cf4a4bffce1543 Signed-off-by:Yalong Wang <yalong9@staff.sina.com.cn> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26451 Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Artur Paszkiewicz <artur.paszkiewicz@solidigm.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot