]> www.infradead.org Git - users/hch/misc.git/commitdiff
RDMA/rtrs-clt: Print request type for errors
authorJack Wang <jinpu.wang@ionos.com>
Wed, 21 Aug 2024 11:22:13 +0000 (13:22 +0200)
committerLeon Romanovsky <leon@kernel.org>
Wed, 28 Aug 2024 12:24:35 +0000 (15:24 +0300)
Extend the output to print also the request type.

Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Link: https://patch.msgid.link/20240821112217.41827-8-haris.iqbal@ionos.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c

index 777f8e52ed7c933dc9f12939d63d6e48c79a9b41..7c6d40380638b693985afd75c3151f2a15f5985a 100644 (file)
@@ -439,8 +439,10 @@ static void complete_rdma_req(struct rtrs_clt_io_req *req, int errno,
        req->con = NULL;
 
        if (errno) {
-               rtrs_err_rl(con->c.path, "IO request failed: error=%d path=%s [%s:%u] notify=%d\n",
-                           errno, kobject_name(&clt_path->kobj), clt_path->hca_name,
+               rtrs_err_rl(con->c.path,
+                           "IO %s request failed: error=%d path=%s [%s:%u] notify=%d\n",
+                           req->dir == DMA_TO_DEVICE ? "write" : "read", errno,
+                           kobject_name(&clt_path->kobj), clt_path->hca_name,
                            clt_path->hca_port, notify);
        }