[ClusterLabs] Antw: Re: Antw: Re: [Cluster-devel] DLM connection channel switch take too long time (> 5mins)
Ulrich.Windl at rz.uni-regensburg.de
Tue Mar 13 03:09:27 EDT 2018
>>> Guoqing Jiang <gqjiang at suse.com> schrieb am 13.03.2018 um 05:00 in Nachricht
<87a8e0e7-63f3-2329-6598-1fa80b1b12d5 at suse.com>:
> On 03/08/2018 07:24 PM, Ulrich Windl wrote:
>> What surprises me most is that a connect(...O_NONBLOCK) actually blocks:
>> The socket is non-blocking and the connection cannot be
>> pleted immediately.
> Maybe it is because that the socket is created by sock_create_kern, and
> O_NONBLOCK flag is not worked since __sctp_connect has the following
> /* in-kernel sockets don't generally have a file allocated to them
> * if all they do is call sock_create_kern().
> if (sk->sk_socket->file)
> f_flags = sk->sk_socket->file->f_flags;
> timeo = sock_sndtimeo(sk, f_flags & O_NONBLOCK);
But O_NONBLOCK is still passed to sock_sndtimeo() (unless the intention was "f_flags & ~O_NONBLOCK").
> Users mailing list: Users at clusterlabs.org
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users