Re: [PATCH for-next v4 10/13] RDMA/rxe: Prevent taking references to dead objects
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-12-01 13:55:08
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-12-01 13:55:08
On Tue, Nov 30, 2021 at 02:05:03PM -0600, Bob Pearson wrote:
let the driver sleep if there are currently active packets being processed with a mutex or semaphore. Additionally we need to cleanup some bad code that makes things not work as mentioned.
Drivers have to sleep in their destroy to fully fence any activity related to the destroying object. It can't keep operating the object after destroy returns, that is not our semantic Jason