We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6912e72 commit f5146e3Copy full SHA for f5146e3
net/smc/smc_core.c
@@ -1662,6 +1662,7 @@ void smcr_port_add(struct smc_ib_device *smcibdev, u8 ibport)
1662
{
1663
struct smc_link_group *lgr, *n;
1664
1665
+ spin_lock_bh(&smc_lgr_list.lock);
1666
list_for_each_entry_safe(lgr, n, &smc_lgr_list.list, list) {
1667
struct smc_link *link;
1668
@@ -1680,6 +1681,7 @@ void smcr_port_add(struct smc_ib_device *smcibdev, u8 ibport)
1680
1681
if (link)
1682
smc_llc_add_link_local(link);
1683
}
1684
+ spin_unlock_bh(&smc_lgr_list.lock);
1685
1686
1687
/* link is down - switch connections to alternate link,
0 commit comments