diff mbox series

RDMA/qedr: Remove in_irq() usage from debug output.

Message ID 20210208193347.383254-1-bigeasy@linutronix.de (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show
Series RDMA/qedr: Remove in_irq() usage from debug output. | expand

Commit Message

Sebastian Andrzej Siewior Feb. 8, 2021, 7:33 p.m. UTC
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(-)

Comments

Jason Gunthorpe Feb. 9, 2021, 12:44 a.m. UTC | #1
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
diff mbox series

Patch

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;