[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac52dbfe-edd9-dd8f-c2f8-a96fea10884d@linux.ibm.com>
Date: Mon, 22 Nov 2021 08:28:33 +0100
From: Karsten Graul <kgraul@...ux.ibm.com>
To: Daxing Guo <guodaxing@...wei.com>, netdev@...r.kernel.org
Cc: chenzhe@...wei.com, linux-s390@...r.kernel.org, greg@...ah.com
Subject: Re: [PATCH] net/smc: loop in smc_listen
On 20/11/2021 08:54, Daxing Guo wrote:
> From: Guo DaXing <guodaxing@...wei.com>
>
> The kernel_listen function in smc_listen will fail when all the available
> ports are occupied. At this point smc->clcsock->sk->sk_data_ready has
> been changed to smc_clcsock_data_ready. When we call smc_listen again,
> now both smc->clcsock->sk->sk_data_ready and smc->clcsk_data_ready point
> to the smc_clcsock_data_ready function.
>
> The smc_clcsock_data_ready() function calls lsmc->clcsk_data_ready which
> now points to itself resulting in an infinite loop.
>
> This patch restores smc->clcsock->sk->sk_data_ready with the old value.
>
> Signed-off-by: Guo DaXing <guodaxing@...wei.com>
> ---
Thanks for your patch, I will pick it up and submit it to the net tree.
Powered by blists - more mailing lists