Skip to content

Commit cedefa8

Browse files
Varun Prakashmartinkpetersen
authored andcommitted
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]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent eb53a3e commit cedefa8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/target/iscsi/cxgbit/cxgbit_ddp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo,
207207
ret = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE);
208208
sgl->offset = sg_offset;
209209
if (!ret) {
210-
pr_info("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n",
211-
__func__, 0, xferlen, sgcnt);
210+
pr_debug("%s: 0x%x, xfer %u, sgl %u dma mapping err.\n",
211+
__func__, 0, xferlen, sgcnt);
212212
goto rel_ppods;
213213
}
214214

@@ -250,8 +250,8 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
250250

251251
ret = cxgbit_ddp_reserve(csk, ttinfo, cmd->se_cmd.data_length);
252252
if (ret < 0) {
253-
pr_info("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n",
254-
csk, cmd, cmd->se_cmd.data_length, ttinfo->nents);
253+
pr_debug("csk 0x%p, cmd 0x%p, xfer len %u, sgcnt %u no ddp.\n",
254+
csk, cmd, cmd->se_cmd.data_length, ttinfo->nents);
255255

256256
ttinfo->sgl = NULL;
257257
ttinfo->nents = 0;

0 commit comments

Comments
 (0)