+21
−1
Loading
Buffer allocation is done after redirection to the QoS thread. Hence add a new helper function bdev_abort_queued_io() and add its call to bdev_io_do_submit() for both buf_need_small and buf_need_large. For zcopy API, buffer allocation is done before buffer allocation but the caller can get bdev I/O object, and can abort the I/O directly if needed. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I2d6170de5ab2ba4d260df99db3e376c0e2c5ffaf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2250 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Michael Haeuptle <michaelhaeuptle@gmail.com>