mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
RDMA/devices: Remove the lock around remove_client_context
Due to the complexity of client->remove() callbacks it is desirable to not hold any locks while calling them. Remove the last one by tracking only the highest client ID and running backwards from there over the xarray. Since the only purpose of that lock was to protect the linked list, we can drop the lock. Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
621e55ff5b
commit
9cd5881719
2 changed files with 27 additions and 22 deletions
|
|
@ -2650,7 +2650,6 @@ struct ib_client {
|
|||
|
||||
refcount_t uses;
|
||||
struct completion uses_zero;
|
||||
struct list_head list;
|
||||
u32 client_id;
|
||||
|
||||
/* kverbs are not required by the client */
|
||||
|
|
|
|||
Loading…
Reference in a new issue