mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
RDMA/core: Follow correct unregister order between sysfs and cgroup
[ Upstream commit c715a39541 ]
During register_device() init sequence is,
(a) register with rdma cgroup followed by
(b) register with sysfs
Therefore, unregister_device() sequence should follow the reverse order.
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6b827d38ce
commit
f63587cbb0
|
|
@ -599,8 +599,8 @@ void ib_unregister_device(struct ib_device *device)
|
|||
}
|
||||
up_read(&lists_rwsem);
|
||||
|
||||
ib_device_unregister_rdmacg(device);
|
||||
ib_device_unregister_sysfs(device);
|
||||
ib_device_unregister_rdmacg(device);
|
||||
|
||||
mutex_unlock(&device_mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user