forked from luck/tmp_suning_uos_patched
RDMA third 5.9-rc pull request
One fix for a bug that blktests hits when using rxe: - Tear down the CQ pool before waiting for all references to go away -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfB7FMLh+8QxL+6i3OG33FX4gmxoFAl9t5tsACgkQOG33FX4g mxp1xw/+IVXOscH6q/IBzd8gwErBuyqPfkakGwhmaO6foiMPisQarvZEGAu5bf/0 Evk0QEesIj9lQAweBVwxtfCkSK4A3OXIkcCxzuYtKKpDxkx8GvhHefqoCkJ2ngLQ rNklScPqrejmECr256jHE2XTmftThZ5Xlcqn4O0TNcMRHgbDhPD640jMuO7UQrFU kPOtuxyUw1vPF6+xJ/ewqbjUtzZfRO1s925sJ0PJTj8JKAQPPhEtaJuj4hMzWeZv Dd8Ut9diap+jQbHLizLHh9ju4BRCx7wsvaC4VUtGD6bNl74KVw+Isepu3S/4/fFd GBk8//NSw8erxwA2FB1tP1qb5XnE8/xLTcbjJnhZu4PM3+fzG1Xo4zVukY/MNK2R QWeOcrd/w6+0Ct943kFfTHKE50sDmGYDws3MAJhIZw9eZfXaYvU6qwCIDBChN+9N smNiCH8raZ0S/afoowseSq0J6ACrRW2JceSbEZoH/PZeJ14gvvW4uIdjZrhEpnCA N9kV9fVmn1tP2Ucf+wiq5WxXT8TMQjLYbJoOUvwOMwVGsrQTgAQeSdGxMMagZEUt 8wpKJkUsHRDmDCmkfIWztLu/8EQWg2Wtbd6iPatPKfcjh0JtTyX4a9FJStKqIobb 3zCojkg8iEjNZrYd0tdlTSBlXezLDxwOpXeKRB/biasr/7eiH60= =XAp+ -----END PGP SIGNATURE----- Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma Pull rdma fix from Jason Gunthorpe: "One fix for a bug that blktests hits when using rxe: tear down the CQ pool before waiting for all references to go away" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: RDMA/core: Fix ordering of CQ pool destruction
This commit is contained in:
commit
33d04c66f5
|
@ -1285,6 +1285,8 @@ static void disable_device(struct ib_device *device)
|
|||
remove_client_context(device, cid);
|
||||
}
|
||||
|
||||
ib_cq_pool_destroy(device);
|
||||
|
||||
/* Pairs with refcount_set in enable_device */
|
||||
ib_device_put(device);
|
||||
wait_for_completion(&device->unreg_completion);
|
||||
|
@ -1328,6 +1330,8 @@ static int enable_device_and_get(struct ib_device *device)
|
|||
goto out;
|
||||
}
|
||||
|
||||
ib_cq_pool_init(device);
|
||||
|
||||
down_read(&clients_rwsem);
|
||||
xa_for_each_marked (&clients, index, client, CLIENT_REGISTERED) {
|
||||
ret = add_client_context(device, client);
|
||||
|
@ -1400,7 +1404,6 @@ int ib_register_device(struct ib_device *device, const char *name)
|
|||
goto dev_cleanup;
|
||||
}
|
||||
|
||||
ib_cq_pool_init(device);
|
||||
ret = enable_device_and_get(device);
|
||||
dev_set_uevent_suppress(&device->dev, false);
|
||||
/* Mark for userspace that device is ready */
|
||||
|
@ -1455,7 +1458,6 @@ static void __ib_unregister_device(struct ib_device *ib_dev)
|
|||
goto out;
|
||||
|
||||
disable_device(ib_dev);
|
||||
ib_cq_pool_destroy(ib_dev);
|
||||
|
||||
/* Expedite removing unregistered pointers from the hash table */
|
||||
free_netdevs(ib_dev);
|
||||
|
|
Loading…
Reference in New Issue
Block a user