+19
−11
Loading
Factor out operations under mutex held from bdev_nvme_reset_ctrlr() into bdev_nvme_reset_ctrlr_unsafe(). We want to move pending reset list from per SPDK thread to global, and then move enqueue operation into bdev_nvme_reset_ctrlr(). However, bdev_nvme_reset_ctrlr() is shared between JSON RPC and bdev_io. To keep code cleanness, this refactoring is necessary. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I5a5333594ff19956575e3c4d6398f3a275c0dfc6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25288 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>