nvmf: correct args order to get bdev_io status
Change-Id: Ib0b5e75f33ed22801a564a89651caa28ebe2b4f6 Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/406890 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
7eac6d9b3e
commit
6684c3b5ac
@ -94,7 +94,7 @@ nvmf_bdev_ctrlr_complete_cmd(struct spdk_bdev_io *bdev_io, bool success,
|
||||
struct spdk_nvme_cpl *response = &req->rsp->nvme_cpl;
|
||||
int sc, sct;
|
||||
|
||||
spdk_bdev_io_get_nvme_status(bdev_io, &sc, &sct);
|
||||
spdk_bdev_io_get_nvme_status(bdev_io, &sct, &sc);
|
||||
response->status.sc = sc;
|
||||
response->status.sct = sct;
|
||||
|
||||
@ -300,7 +300,7 @@ nvmf_virtual_ctrlr_dsm_cpl(struct spdk_bdev_io *bdev_io, bool success,
|
||||
|
||||
if (response->status.sct == SPDK_NVME_SCT_GENERIC &&
|
||||
response->status.sc == SPDK_NVME_SC_SUCCESS) {
|
||||
spdk_bdev_io_get_nvme_status(bdev_io, &sc, &sct);
|
||||
spdk_bdev_io_get_nvme_status(bdev_io, &sct, &sc);
|
||||
response->status.sc = sc;
|
||||
response->status.sct = sct;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user