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 9a40a1e commit 77731feCopy full SHA for 77731fe
net/smc/smc_core.c
@@ -204,18 +204,17 @@ static void smc_lgr_unregister_conn(struct smc_connection *conn)
204
void smc_lgr_cleanup_early(struct smc_connection *conn)
205
{
206
struct smc_link_group *lgr = conn->lgr;
207
- struct list_head *lgr_list;
208
spinlock_t *lgr_lock;
209
210
if (!lgr)
211
return;
212
213
smc_conn_free(conn);
214
- lgr_list = smc_lgr_list_head(lgr, &lgr_lock);
+ smc_lgr_list_head(lgr, &lgr_lock);
215
spin_lock_bh(lgr_lock);
216
/* do not use this link group for new connections */
217
- if (!list_empty(lgr_list))
218
- list_del_init(lgr_list);
+ if (!list_empty(&lgr->list))
+ list_del_init(&lgr->list);
219
spin_unlock_bh(lgr_lock);
220
__smc_lgr_terminate(lgr, true);
221
}
0 commit comments