RDMA: Mark if create address handle is in a sleepable context
Introduce a 'flags' field to create 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:

zatwierdzone przez
Jason Gunthorpe

rodzic
5dabcd0456
commit
b090c4e3a0
@@ -89,7 +89,7 @@ static void update_sm_ah(struct mthca_dev *dev,
|
||||
rdma_ah_set_port_num(&ah_attr, port_num);
|
||||
|
||||
new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
|
||||
&ah_attr);
|
||||
&ah_attr, 0);
|
||||
if (IS_ERR(new_ah))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user