If an IO is completed, before submitting it to a module, it isn't put on the io_submitted list, so we can't use bdev_io_complete() to complete it, as it'll break that list. To avoid that, a new function was added, bdev_io_complete_unsubmitted(), that will safely complete the IOs in such case. For now, it's equivalent to executing user's completion callback, but it'll serve as a good place to release any resources that should be freed before an IO is completed. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I1442ead9d272d9210553803bed1d1c989a2bf761 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16970 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> |
||
|---|---|---|
| .. | ||
| bdev_internal.h | ||
| bdev_rpc.c | ||
| bdev_zone.c | ||
| bdev.c | ||
| Makefile | ||
| part.c | ||
| scsi_nvme.c | ||
| spdk_bdev.map | ||
| vtune.c | ||