mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
scsi: zfcp: Use the proper SCSI midlayer interfaces for PI
Use scsi_prot_ref_tag() and scsi_prot_interval() instead scsi_get_lba() and sector_size. Link: https://lore.kernel.org/r/20210609033929.3815-7-martin.petersen@oracle.com Reviewed-by: Benjamin Block <bblock@linux.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Message-Id: <20210609033929.3815-7-martin.petersen@oracle.com>
This commit is contained in:
parent
e2e9cd68fb
commit
73e61d5c22
@ -2599,8 +2599,8 @@ int zfcp_fsf_fcp_cmnd(struct scsi_cmnd *scsi_cmnd)
|
||||
io->fcp_cmnd_length = FCP_CMND_LEN;
|
||||
|
||||
if (scsi_get_prot_op(scsi_cmnd) != SCSI_PROT_NORMAL) {
|
||||
io->data_block_length = scsi_cmnd->device->sector_size;
|
||||
io->ref_tag_value = scsi_get_lba(scsi_cmnd) & 0xFFFFFFFF;
|
||||
io->data_block_length = scsi_prot_interval(scsi_cmnd);
|
||||
io->ref_tag_value = scsi_prot_ref_tag(scsi_cmnd);
|
||||
}
|
||||
|
||||
if (zfcp_fsf_set_data_dir(scsi_cmnd, &io->data_direction))
|
||||
|
Loading…
Reference in New Issue
Block a user