OSDN Git Service

RDMA/core: Remove context entries from list while unregistering device
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 12:08:43 +0000 (15:08 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 19:45:38 +0000 (13:45 -0600)
commit4512acd0d34cea1bc0d9c69c1a60174016e121d7
treeeb6da91e7af209edd16b6feadee9d28288339b4d
parentf7b65d9bf2db0e4b319c0676900c6c25398a449f
RDMA/core: Remove context entries from list while unregistering device

While unregistering a device, remove the context elements from the list to
not have any stale entries. With that any errors/bugs can be checked when
device is freed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c