net/smc: increase device refcount for added link group
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 9 Oct 2019 08:07:45 +0000 (10:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:43:53 +0000 (16:43 +0100)
commit2674c57c3bba13dc3a9ec1da9fa3e3bfe9f0435b
tree07c28c352dbb99160e140be4a457261d1849413b
parent68b4c10813b4b1cfff2e2c80a79a187a97548d3f
net/smc: increase device refcount for added link group

[ Upstream commit b3cb53c05f20c5b4026a36a7bbd3010d1f3e0a55 ]

SMCD link groups belong to certain ISM-devices and SMCR link group
links belong to certain IB-devices. Increase the refcount for
these devices, as long as corresponding link groups exist.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_core.c