+10
−0
Loading
Add abort queued I/O due to out of memory into bdev_io_do_submit(). Any bdev I/O is queued due to out of memory only on the submitted channel. Aborting queued I/O due to out of memory is necessary only if shared_resource->nomem_io is not empty. Checking if shared_resource->nomem_io is not empty has been done in this function. However add the abort operation without and before checking if shared_resource->nomem_io is not empty because the following patch will abort queued I/O due to buffer pool capacity. The purpose is to improve readability by consolidating all abort operations into a single place. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I69a40f096aff13b84c1ed345fa8bd0dd80cef0e1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2249 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>