* [PATCH] RDMA/qedr: Remove in_irq() usage from debug output.
@ 2021-02-08 19:33 Sebastian Andrzej Siewior
2021-02-09 0:44 ` Jason Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2021-02-08 19:33 UTC (permalink / raw)
To: linux-rdma
Cc: Michal Kalderon, Ariel Elior, Doug Ledford, Jason Gunthorpe,
Thomas Gleixner, Sebastian Andrzej Siewior
qedr_gsi_post_send() has a debug output which prints the return value of
in_irq() and irqs_disabled().
The result of the in_irq(), even if invoked from an interrupt handler,
is subject to change depending on the `threadirqs' command line switch.
The result of irqs_disabled() is always be 1 because the function
acquires spinlock_t with spin_lock_irqsave().
Remove in_irq() and irqs_disabled() from the debug output because it
provides little value.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
drivers/infiniband/hw/qedr/qedr_roce_cm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/qedr/qedr_roce_cm.c b/drivers/infiniband/hw/qedr/qedr_roce_cm.c
index f5542d703ef90..13e5e6bbec99c 100644
--- a/drivers/infiniband/hw/qedr/qedr_roce_cm.c
+++ b/drivers/infiniband/hw/qedr/qedr_roce_cm.c
@@ -586,8 +586,8 @@ int qedr_gsi_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
qp->wqe_wr_id[qp->sq.prod].wr_id = wr->wr_id;
qedr_inc_sw_prod(&qp->sq);
DP_DEBUG(qp->dev, QEDR_MSG_GSI,
- "gsi post send: opcode=%d, in_irq=%ld, irqs_disabled=%d, wr_id=%llx\n",
- wr->opcode, in_irq(), irqs_disabled(), wr->wr_id);
+ "gsi post send: opcode=%d, wr_id=%llx\n", wr->opcode,
+ wr->wr_id);
} else {
DP_ERR(dev, "gsi post send: failed to transmit (rc=%d)\n", rc);
rc = -EAGAIN;
--
2.30.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] RDMA/qedr: Remove in_irq() usage from debug output.
2021-02-08 19:33 [PATCH] RDMA/qedr: Remove in_irq() usage from debug output Sebastian Andrzej Siewior
@ 2021-02-09 0:44 ` Jason Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2021-02-09 0:44 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: linux-rdma, Michal Kalderon, Ariel Elior, Doug Ledford,
Thomas Gleixner
On Mon, Feb 08, 2021 at 08:33:47PM +0100, Sebastian Andrzej Siewior wrote:
> qedr_gsi_post_send() has a debug output which prints the return value of
> in_irq() and irqs_disabled().
> The result of the in_irq(), even if invoked from an interrupt handler,
> is subject to change depending on the `threadirqs' command line switch.
> The result of irqs_disabled() is always be 1 because the function
> acquires spinlock_t with spin_lock_irqsave().
>
> Remove in_irq() and irqs_disabled() from the debug output because it
> provides little value.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> drivers/infiniband/hw/qedr/qedr_roce_cm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to for-next, thanks
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-09 0:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 19:33 [PATCH] RDMA/qedr: Remove in_irq() usage from debug output Sebastian Andrzej Siewior
2021-02-09 0:44 ` Jason Gunthorpe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.