Skip to content

Commit 18f7761

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Update logging of protection type for T10 DIF I/O
A struct scsi_cmnd already contains T10 DIF protection type information in prot_type. So, instead of manually checking a CDBs' RD/WRPROTECT fields with (byte[1] >> 5) utilize scsi_get_prot_type(). Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1db60fa commit 18f7761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_scsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5327,7 +5327,7 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
53275327
cmnd->cmnd[0],
53285328
scsi_prot_ref_tag(cmnd),
53295329
scsi_logical_block_count(cmnd),
5330-
(cmnd->cmnd[1]>>5));
5330+
scsi_get_prot_type(cmnd));
53315331
}
53325332
err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd);
53335333
} else {

0 commit comments

Comments
 (0)