]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1d4034e47426f49d18a1f608220545b90fa1326
treeeb6da91e7af209edd16b6feadee9d28288339b4d
parentbfc6023c2eb7651eaa69a800922255dbb12d08fb
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