> From: Jason Gunthorpe <jgg@xxxxxxxxxx> > Sent: Wednesday, March 22, 2023 3:15 AM > > The selftest invokes things like replace under the object lock of its > idev which protects the idev in a similar way to a real user. > Unfortunately this triggers lockdep. A lock class per type will solve the > problem. > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>