Hold the bdev_io which submits the reset request into the nvme_bdev_ctrlr. as reset_bio. Then differentiate the callback function between _bdev_nvme_complete_pending_resets() and _bdev_nvme_abort_pending_resets() to spdk_for_each_channel() in _bdev_nvme_reset_complete(). The next patch will pass nvme_bdev_ctrlr to for_each_channel() instead. The following patches will register nvme_bdev_subsystem instead of nvme_bdev_ctrlr as io_device. Hence we need a different way to pass nvme_bdev_ctrlr to the completion functions of spdk_for_each_channel(). Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: If7a3386815429e8ed44f4e9e5365a21bd97e7fb6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6913 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
bdev_nvme_cuse_rpc.c | ||
bdev_nvme_rpc.c | ||
bdev_nvme.c | ||
bdev_nvme.h | ||
bdev_ocssd_rpc.c | ||
bdev_ocssd.c | ||
bdev_ocssd.h | ||
common.c | ||
common.h | ||
Makefile | ||
nvme_rpc.c | ||
vbdev_opal_rpc.c | ||
vbdev_opal.c | ||
vbdev_opal.h |