We need to pass bio only when the reset request came from the upper layer. Previously, bdev_nvme_reset() called _bdev_nvme_reset() and _bdev_nvme_reset() had the second parameter, ctx, to pass bio to for_each_channel(). However, it was not clean. Let's separate bdev_nvme_reset() which processes a reset request came from the upper layer and _bdev_nvme_reset() which proesses an internal reset request by adding a helper function _bdev_nvme_reset_start(). The next patch will remove the second parameter, ctx, from _bdev_nvme_reset() for clarification and further refactorings. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I2bd00e3abb56fe8d540b8af55743ee92ca9cd526 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6948 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |