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

orang tua
b090c4e3a0
melakukan
2553ba217e
@@ -53,7 +53,7 @@ enum {
|
||||
|
||||
struct ib_ah *ocrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr,
|
||||
u32 flags, struct ib_udata *udata);
|
||||
int ocrdma_destroy_ah(struct ib_ah *ah);
|
||||
int ocrdma_destroy_ah(struct ib_ah *ah, u32 flags);
|
||||
int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
|
||||
|
||||
int ocrdma_process_mad(struct ib_device *,
|
||||
|
Reference in New Issue
Block a user