Malloc bdev module does not manage submitted I/Os by any list, and so cannot abort any submitted I/O. However malloc bdev module can always fail any submitted abort request. Hence let's update bdev_malloc_io_type_supported() to return true for SPDK_BDEV_IO_TYPE_ABORT and update _bdev_malloc_submit_request() to complete with failure for SPDK_BDEV_IO_TYPE_ABORT. This will enable us to use delay bdev + malloc bdev to test I/O abort feature conveniently. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: If4c411f5ab8589291ac90c10264d3ef30c06df83 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2797 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
bdev_malloc_rpc.c | ||
bdev_malloc.c | ||
bdev_malloc.h | ||
Makefile |