Skip to content

Commit ff73958

Browse files
jinpuwangrleon
authored andcommitted
RDMA/rtrs-clt: Print request type for errors
Extend the output to print also the request type. Signed-off-by: Jack Wang <[email protected]> Signed-off-by: Grzegorz Prajsner <[email protected]> Signed-off-by: Md Haris Iqbal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3e4289b commit ff73958

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/infiniband/ulp/rtrs/rtrs-clt.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,10 @@ static void complete_rdma_req(struct rtrs_clt_io_req *req, int errno,
439439
req->con = NULL;
440440

441441
if (errno) {
442-
rtrs_err_rl(con->c.path, "IO request failed: error=%d path=%s [%s:%u] notify=%d\n",
443-
errno, kobject_name(&clt_path->kobj), clt_path->hca_name,
442+
rtrs_err_rl(con->c.path,
443+
"IO %s request failed: error=%d path=%s [%s:%u] notify=%d\n",
444+
req->dir == DMA_TO_DEVICE ? "write" : "read", errno,
445+
kobject_name(&clt_path->kobj), clt_path->hca_name,
444446
clt_path->hca_port, notify);
445447
}
446448

0 commit comments

Comments
 (0)