Commit 6ac23b3e authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Jim Harris
Browse files

bdev/nvme: Clear I/O path cache if a path whose ns is optimized is restored



If a path whose namespace is optimized is restored, the corresponding
I/O path cache should be cleared and the path should be chosen as the
optimal path.

This bug was found by a system test.

Signed-off-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Ibc3983dbff3418adb090a09df32c2a92a8910d05
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11004


Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarMonica Kenguva <monica.kenguva@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 3308bdf1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1222,6 +1222,8 @@ bdev_nvme_create_qpair(struct nvme_ctrlr_channel *ctrlr_ch)

	ctrlr_ch->qpair = qpair;

	_bdev_nvme_clear_io_path_cache(ctrlr_ch);

	return 0;

err: