lkml.org 
[lkml]   [2022]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net v4] net/smc: Reset conn->lgr when link group registration fails
From
On 06/01/2022 07:44, Wen Gu wrote:
> @@ -630,10 +630,11 @@ static int smc_connect_decline_fallback(struct smc_sock *smc, int reason_code,
>
> static void smc_conn_abort(struct smc_sock *smc, int local_first)
> {
> + struct smc_connection *conn = &smc->conn;
> +
> + smc_conn_free(conn);
> if (local_first)
> - smc_lgr_cleanup_early(&smc->conn);
> - else
> - smc_conn_free(&smc->conn);
> + smc_lgr_cleanup_early(conn->lgr);
> }

Looks like I missed a prereq patch here, but wo'nt conn->lgr be set to NULL
after smc_conn_free() called smc_lgr_unregister_conn()?

\
 
 \ /
  Last update: 2022-01-06 11:01    [W:0.124 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site