linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* blktest failures
@ 2022-04-08 22:10 Bob Pearson
  2022-04-08 22:50 ` Bob Pearson
  0 siblings, 1 reply; 15+ messages in thread
From: Bob Pearson @ 2022-04-08 22:10 UTC (permalink / raw)
  To: Bart Van Assche, Jason Gunthorpe, linux-rdma@vger.kernel.org,
	Yi Zhang

Bart,

I finally was able to build a kernel with lockdep enabled correctly and saw the error that you and others reported.
I am not familiar with lockdep output but I am guessing that it is reporting a mismatch between a _bh spinlock
and a _irqsave spinlock (since those are the only two types used by the driver.)

I went on campaign a while back to replace all the locks with _bh locks because I figured they would be
faster than _irqsave locks and because the driver never touched a lock except from a verbs API call or from
a tasklet (softirq.) As it turned out some code makes verbs API calls while in hardirq context which broke
that assumption. So some of the locks were reverted back to irqsave locks which fixed those warnings.

Now it is happening again. I did an experiment and went through the rxe driver and replaced all spinlocks
with _irqsave locks. Now the lockdep splats have gone away and the srp/001 test reports success. BUT,
it hangs and doesn't finish. If I try to run all the tests I get warnings about unable to remove the
scsi_debug driver. I am able to remove the rdma_rxe driver and reload it. I am not seeing any errors in
the rxe driver.

Do you have any ideas what to look at next?

Bob

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

end of thread, other threads:[~2022-04-15 15:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-08 22:10 blktest failures Bob Pearson
2022-04-08 22:50 ` Bob Pearson
2022-04-08 23:25   ` Bart Van Assche
2022-04-09  0:31     ` Yi Zhang
2022-04-09  4:33       ` Bart Van Assche
2022-04-09  5:04     ` Christoph Hellwig
2022-04-09 21:43       ` Bob Pearson
2022-04-09 21:47         ` Bart Van Assche
2022-04-15  7:12         ` Yanjun Zhu
2022-04-15  7:26           ` Bob Pearson
2022-04-15  7:29           ` Bob Pearson
2022-04-15  7:37             ` Yanjun Zhu
2022-04-15  7:46               ` Bob Pearson
2022-04-15  7:59                 ` Yanjun Zhu
2022-04-15 15:44                   ` Bob Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).