提交 2613470a 编写于 作者: J James Smart 提交者: James Bottomley

[SCSI] lpfc 8.3.34: Simplify BlockGuard lpfc_printf_vlog messages

Signed-off-by: NJames Smart <james.smart@emulex.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 e3d2b802
...@@ -60,12 +60,6 @@ static char *dif_op_str[] = { ...@@ -60,12 +60,6 @@ static char *dif_op_str[] = {
"PROT_WRITE_PASS", "PROT_WRITE_PASS",
}; };
static char *dif_grd_str[] = {
"NO_GUARD",
"DIF_CRC",
"DIX_IP",
};
struct scsi_dif_tuple { struct scsi_dif_tuple {
__be16 guard_tag; /* Checksum */ __be16 guard_tag; /* Checksum */
__be16 app_tag; /* Opaque storage */ __be16 app_tag; /* Opaque storage */
...@@ -4311,46 +4305,22 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) ...@@ -4311,46 +4305,22 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
if (scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) { if (scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) {
if (vport->phba->cfg_enable_bg) { if (vport->phba->cfg_enable_bg) {
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, lpfc_printf_vlog(vport, KERN_INFO, LOG_BG,
"9033 BLKGRD: rcvd protected cmd:%02x op=%s " "9033 BLKGRD: rcvd %s cmd:x%x "
"guard=%s\n", cmnd->cmnd[0], "sector x%llx cnt %u pt %x\n",
dif_op_str[scsi_get_prot_op(cmnd)], dif_op_str[scsi_get_prot_op(cmnd)],
dif_grd_str[scsi_host_get_guard(shost)]); cmnd->cmnd[0],
if (cmnd->cmnd[0] == READ_10)
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
"9035 BLKGRD: READ @ sector %llu, "
"cnt %u, rpt %d\n",
(unsigned long long)scsi_get_lba(cmnd),
blk_rq_sectors(cmnd->request),
(cmnd->cmnd[1]>>5));
else if (cmnd->cmnd[0] == WRITE_10)
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
"9036 BLKGRD: WRITE @ sector %llu, "
"cnt %u, wpt %d\n",
(unsigned long long)scsi_get_lba(cmnd), (unsigned long long)scsi_get_lba(cmnd),
blk_rq_sectors(cmnd->request), blk_rq_sectors(cmnd->request),
(cmnd->cmnd[1]>>5)); (cmnd->cmnd[1]>>5));
} }
err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd); err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd);
} else { } else {
if (vport->phba->cfg_enable_bg) { if (vport->phba->cfg_enable_bg) {
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, lpfc_printf_vlog(vport, KERN_INFO, LOG_BG,
"9038 BLKGRD: rcvd unprotected cmd:" "9038 BLKGRD: rcvd PROT_NORMAL cmd: "
"%02x op=%s guard=%s\n", cmnd->cmnd[0], "x%x sector x%llx cnt %u pt %x\n",
dif_op_str[scsi_get_prot_op(cmnd)], cmnd->cmnd[0],
dif_grd_str[scsi_host_get_guard(shost)]);
if (cmnd->cmnd[0] == READ_10)
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
"9040 dbg: READ @ sector %llu, "
"cnt %u, rpt %d\n",
(unsigned long long)scsi_get_lba(cmnd),
blk_rq_sectors(cmnd->request),
(cmnd->cmnd[1]>>5));
else if (cmnd->cmnd[0] == WRITE_10)
lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
"9041 dbg: WRITE @ sector %llu, "
"cnt %u, wpt %d\n",
(unsigned long long)scsi_get_lba(cmnd), (unsigned long long)scsi_get_lba(cmnd),
blk_rq_sectors(cmnd->request), blk_rq_sectors(cmnd->request),
(cmnd->cmnd[1]>>5)); (cmnd->cmnd[1]>>5));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册