Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: RDMA/iser: Use scsi_cmd_to_rq() instead of scsi_cmnd.request

Prepare for removal of the request pointer by using scsi_cmd_to_rq()
instead. This patch does not change any functionality.

Link: https://lore.kernel.org/r/20210809230355.8186-9-bvanassche@acm.org
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
99247108 c8329cd5

+1 -1
+1 -1
drivers/infiniband/ulp/iser/iser_memory.c
··· 159 159 { 160 160 domain->sig_type = IB_SIG_TYPE_T10_DIF; 161 161 domain->sig.dif.pi_interval = scsi_prot_interval(sc); 162 - domain->sig.dif.ref_tag = t10_pi_ref_tag(sc->request); 162 + domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); 163 163 /* 164 164 * At the moment we hard code those, but in the future 165 165 * we will take them from sc.