Re: [PATCH] sctp: Wake up all processes after closing the connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 02, 2020 at 10:01:26AM +0200, Petr Malat wrote:
> All waiters need to be woken up after a state change to ESTABLISHED,
> CLOSED or SHUTDOWN_RECEIVED, as that's the time when they all should
> react - for example all threads blocked in send() must return an
> error when the connection is closed, not only one of them.
> 
> This solves the problem of threads sleeping indefinitely in
> sctp_sendmsg_to_asoc() when the connection was closed while multiple
> threads were waiting for SNDBUF.
> 
> Signed-off-by: Petr Malat <oss@xxxxxxxxx>

Thanks.

Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx>



[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux