Loading
nvme: zero shadow doorbell registers when freeing qpair
The shadow registers need to be zero when the qpair is created. This happens automatically when a given qid is used for the first time, since the page is allocated with zmalloc. But if a qid is reused, we need to make sure its shadow registers are cleared *before* we create the qpair again with the same qid. So clear the registers in nvme_pcie_ctrlr_delete_io_qpair, just after the cq is deleted. Fixes issue #1795. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I08c30d1ea248559a01b802cd132dd57199b491b5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6752 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>