Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Bob Pearson <rpearsonhpe@gmail.com>
Cc: Bernard Metzler <BMT@zurich.ibm.com>,
	Zhu Yanjun <zyjzyj2000@gmail.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: question about the completion tasklet in the rxe driver
Date: Tue, 21 Mar 2023 09:54:19 -0300	[thread overview]
Message-ID: <ZBmo+3s9herDiBR7@nvidia.com> (raw)
In-Reply-To: <3d8576fc-eab5-c962-95bb-badadd18c85f@gmail.com>

On Thu, Mar 16, 2023 at 12:14:30PM -0500, Bob Pearson wrote:

> And you did. I am not sure why the mlx5 driver defers the completion handler call
> to a tasklet. I could be that it gets called in a hard interrupt and completion
> handling is deferred to a soft interrupt context. But for rxe the completion
> is always already in a soft interrupt context or a process context.

mlx5_eq_comp_int() is a hard IRQ context

mlx5_cq_tasklet_cb() is in a tasklet context

It has some logic that it only does a certain amount of work per
tasklet call and then it reschedules itself to run again.

mlx5_ib_cq_comp() is in a tasklet context

Jason

  parent reply	other threads:[~2023-03-21 12:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15 21:56 question about the completion tasklet in the rxe driver Bob Pearson
2023-03-16  9:40 ` Bernard Metzler
2023-03-16 17:14   ` Bob Pearson
2023-03-16 18:18     ` Bernard Metzler
2023-03-21 12:54     ` Jason Gunthorpe [this message]
2023-03-19  9:02 ` Zhu Yanjun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZBmo+3s9herDiBR7@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=BMT@zurich.ibm.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=rpearsonhpe@gmail.com \
    --cc=zyjzyj2000@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox