[PATCH v2] nvme: Move nvme_setup_cmd before hot_pathing

From: 전민식

Date: Sun Mar 22 2026 - 21:05:06 EST


Hi kanchan


The reason for calling nvme_cleanup_cmd in the nvme_prep_rq function
is when it fails after calling the nvme_map_data function.
Therefore, the memory leak does not occur. Did I miss anything?

Additionally, the patch v2 that modifies the warrning detected by
kernel test robot.

>> drivers/nvme/host/rdma.c:2067:1: warning: label 'unmap_qe' defined but not used [-Wunused-label]
2067 | unmap_qe:
| ^~~~~~~~