RDMA: Mark if destroy address handle is in a sleepable context
Introduce a 'flags' field to destroy address handle callback and add a flag that marks whether the callback is executed in an atomic context or not. This will allow drivers to wait for completion instead of polling for it when it is allowed. Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
b090c4e3a0
commit
2553ba217e
@@ -160,7 +160,8 @@ void rvt_free_mad_agents(struct rvt_dev_info *rdi)
|
||||
ib_unregister_mad_agent(agent);
|
||||
}
|
||||
if (rvp->sm_ah) {
|
||||
rdma_destroy_ah(&rvp->sm_ah->ibah);
|
||||
rdma_destroy_ah(&rvp->sm_ah->ibah,
|
||||
RDMA_DESTROY_AH_SLEEPABLE);
|
||||
rvp->sm_ah = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user