From: Bart Van Assche Date: Mon, 8 Jan 2018 19:00:47 +0000 (-0800) Subject: IB/srpt: Convert a warning into a debug message X-Git-Tag: v5.15~9457^2~143^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea51d2e12aac9205291b0ec88ffb7d33da7eafb5;p=platform%2Fkernel%2Flinux-starfive.git IB/srpt: Convert a warning into a debug message At least when running the ib_srpt driver on top of the rdma_rxe driver it is easy to trigger a zero-length write completion in the CH_DISCONNECTED state. Hence make the message that reports this less noisy. Signed-off-by: Bart Van Assche Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 25c5e18..31b6f10 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -875,7 +875,8 @@ static void srpt_zerolength_write_done(struct ib_cq *cq, struct ib_wc *wc) if (srpt_set_ch_state(ch, CH_DISCONNECTED)) schedule_work(&ch->release_work); else - WARN_ONCE(1, "%s-%d\n", ch->sess_name, ch->qp->qp_num); + pr_debug("%s-%d: already disconnected.\n", + ch->sess_name, ch->qp->qp_num); } }