Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* question about the completion tasklet in the rxe driver
@ 2023-03-15 21:56 Bob Pearson
  2023-03-16  9:40 ` Bernard Metzler
  2023-03-19  9:02 ` Zhu Yanjun
  0 siblings, 2 replies; 6+ messages in thread
From: Bob Pearson @ 2023-03-15 21:56 UTC (permalink / raw)
  To: Jason Gunthorpe, Zhu Yanjun, linux-rdma@vger.kernel.org,
	Bernard Metzler

I have a goal of trying to get rid of all the tasklets in the rxe driver and with the replacement of the
three QP tasklets by workqueues the only remaining one is the tasklet that defers the CQ completion
handler. This has been in there since the driver went upstream so the history of why it is there is lost.

I notice that the mlx5 driver does have a deferral mechanism for the completion handler but the siw driver
does not. I really do not see what advantage, if any, this has for the rxe driver. Perhaps there is some
reason it shouldn't run in hard interrupt context but the CQ tasklet is a soft interrupt so the completion
handler can't sleep anyway.

As an experiment I removed the CQ tasklet in the rxe driver and it runs fine. In fact the performance is
slightly better with the completion handler called inline rather than deferred to another tasklet.
If we can eliminate this there won't be anymore tasklets in the rxe driver.

Does anyone know why the tasklet was put in in the first place?

Thanks,

Bob

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-21 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-03-19  9:02 ` Zhu Yanjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox