When multipath is supported, a subsystem has multiple controllers and bdev_nvme_create_cb() will create a channel per nvme_bdev_ctrlr by iterating the list of nvme_bdev_ctrlrs, and will hold lock while doing it. If the code to access nvme_bdev_ctrlr is put in a place, the following patches will be easier and smaller. Hence reorder the code of bdev_nvme_create_cb() as a preparation. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I2f2e66758c3374c678cc44bbb0116f4611c6753a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7754 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> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |