scsi: target: iscsi: cxgbit: use pr_debug() instead of pr_info()
PATCH 1/1 scsi: target: iscsi: cxgbit: use pr_debug() instead of pr_info()
DDP programming happens in data path and it can fail because of lack of resources so use pr_debug() instead of pr_info() for this case.
Signed-off-by Varun Prakash <[email protected]>
--- drivers/target/iscsi/cxgbit/cxgbit_ddp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/target/iscsi/cxgbit/cxgbit_ddp.c +4 -4
@@ -207,8 +207,8 @@ cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, ret =dma_map_sg (&ppm->pdev->dev, sgl, sgcnt,DMA_FROM_DEVICE ); sgl->offset = sg_offset;if (!ret) { -pr_info ("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n" , - __func__,0 , xferlen, sgcnt); +pr_debug ("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n" , + __func__,0 , xferlen, sgcnt); goto rel_ppods; }
@@ -250,8 +250,8 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsi_cmd *cmd, ret =cxgbit_ddp_reserve (csk, ttinfo, cmd->se_cmd.data_length);if (ret <0 ) { -pr_info ("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n" , - csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); +pr_debug ("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n" , + csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); ttinfo->sgl =NULL ; ttinfo->nents =0 ;
Signature · 1 line
2.0.2
Quoted 26 lines · Varun Prakash
DDP programming happens in data path and it can fail because of lack of resources so use
pr_debug()instead ofpr_info()for this case.Signed-off-by Varun Prakash <[email protected]>--- drivers/target/iscsi/cxgbit/cxgbit_ddp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/target/iscsi/cxgbit/cxgbit_ddp.c +2
-2@@ -207,8 +207,8 @@ cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, ret =dma_map_sg (&ppm->pdev->dev, sgl, sgcnt,DMA_FROM_DEVICE ); sgl->offset = sg_offset;if (!ret) { -pr_info ("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n" , - __func__,0 , xferlen, sgcnt); +pr_debug ("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n" , + __func__,0 , xferlen, sgcnt); goto rel_ppods; }
drivers/target/iscsi/cxgbit/cxgbit_ddp.c cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsi_cmd *cmd, · line 257
Quoted 10 lines
drivers/target/iscsi/cxgbit/cxgbit_ddp.c +2
-2@@ -250,8 +250,8 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsi_cmd *cmd, ret =cxgbit_ddp_reserve (csk, ttinfo, cmd->se_cmd.data_length);if (ret <0 ) { -pr_info ("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n" , - csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); +pr_debug ("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n" , + csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); ttinfo->sgl =NULL ; ttinfo->nents =0 ;
Reviewed-by Mike Christie <[email protected]>
Martin K. Petersen
AppliedVarun,
Quoted 2 lines
DDP programming happens in data path and it can fail because of lack of resources so use
pr_debug()instead ofpr_info()for this case.
Applied to 4.19/scsi-fixes.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering