summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/rtrs/rtrs-clt.c
diff options
context:
space:
mode:
authorMd Haris Iqbal <haris.iqbal@ionos.com>2023-11-15 16:27:41 +0100
committerLeon Romanovsky <leon@kernel.org>2023-11-19 15:00:45 +0200
commit0529e26d8b7b51da99c9d7234700f4041d20c0e4 (patch)
tree95277cb3e3f4892b2ed049ce9cc5a166546d83c7 /drivers/infiniband/ulp/rtrs/rtrs-clt.c
parenteb7854d63db543caeb8cadb5c3ae5296d0cb7b8f (diff)
downloadlinux-0529e26d8b7b51da99c9d7234700f4041d20c0e4.tar.gz
linux-0529e26d8b7b51da99c9d7234700f4041d20c0e4.tar.bz2
linux-0529e26d8b7b51da99c9d7234700f4041d20c0e4.zip
RDMA/rtrs-clt: Add warning logs for RDMA events
Some RDMA CM events can trigger connection close or recovery for a certain rtrs_clt_path. Such close/recovery triggers should happen after an appropriate log message, since they can lead to IO failures. Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com> Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com> Link: https://lore.kernel.org/r/20231115152749.424301-2-haris.iqbal@ionos.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/ulp/rtrs/rtrs-clt.c')
-rw-r--r--drivers/infiniband/ulp/rtrs/rtrs-clt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-clt.c b/drivers/infiniband/ulp/rtrs/rtrs-clt.c
index 07261523c554..984a4a1db3c8 100644
--- a/drivers/infiniband/ulp/rtrs/rtrs-clt.c
+++ b/drivers/infiniband/ulp/rtrs/rtrs-clt.c
@@ -2025,6 +2025,8 @@ static int rtrs_clt_rdma_cm_handler(struct rdma_cm_id *cm_id,
/*
* Device removal is a special case. Queue close and return 0.
*/
+ rtrs_wrn_rl(s, "CM event: %s, status: %d\n", rdma_event_msg(ev->event),
+ ev->status);
rtrs_clt_close_conns(clt_path, false);
return 0;
default: