linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dlm: prompt the user SCTP is experimental
@ 2018-03-20  6:45 Gang He
  2018-03-23  4:27 ` Gang He
  0 siblings, 1 reply; 4+ messages in thread
From: Gang He @ 2018-03-20  6:45 UTC (permalink / raw)
  To: teigland; +Cc: Gang He, cluster-devel, linux-kernel

As you know, DLM module can use TCP or SCTP protocols to
communicate among the cluster.
But, according to our testing, SCTP protocol is still considered
experimental, since not all aspects are working correctly and
it is not full tested.
e.g. SCTP connection channel switch needs about 5mins hang in case
one connection(ring) is broken.
Then, I suggest to add a kernel print, which prompts the user SCTP
protocol for DLM should be considered experimental, it is not
recommended in production environment.

Signed-off-by: Gang He <ghe@suse.com>
---
 fs/dlm/lowcomms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index cff79ea..18fd85d 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -1307,6 +1307,7 @@ static int sctp_listen_for_all(void)
 		return -ENOMEM;
 
 	log_print("Using SCTP for communications");
+	log_print("SCTP protocol is experimental, use at your own risk");
 
 	result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family,
 				  SOCK_STREAM, IPPROTO_SCTP, &sock);
-- 
1.8.5.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dlm: prompt the user SCTP is experimental
  2018-03-20  6:45 [PATCH] dlm: prompt the user SCTP is experimental Gang He
@ 2018-03-23  4:27 ` Gang He
  2018-04-02 15:03   ` David Teigland
  0 siblings, 1 reply; 4+ messages in thread
From: Gang He @ 2018-03-23  4:27 UTC (permalink / raw)
  To: teigland, Gang He; +Cc: cluster-devel, linux-kernel

Hello David,

Do you agree to add this prompt to the user? 
Since sometimes customers attempted to setup SCTP protocol with two rings, 
but they could not get the expected result, then it maybe bring some concerns to the customer for DLM qualities.


Thanks
Gang


>>> 
> As you know, DLM module can use TCP or SCTP protocols to
> communicate among the cluster.
> But, according to our testing, SCTP protocol is still considered
> experimental, since not all aspects are working correctly and
> it is not full tested.
> e.g. SCTP connection channel switch needs about 5mins hang in case
> one connection(ring) is broken.
> Then, I suggest to add a kernel print, which prompts the user SCTP
> protocol for DLM should be considered experimental, it is not
> recommended in production environment.
> 
> Signed-off-by: Gang He <ghe@suse.com>
> ---
>  fs/dlm/lowcomms.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
> index cff79ea..18fd85d 100644
> --- a/fs/dlm/lowcomms.c
> +++ b/fs/dlm/lowcomms.c
> @@ -1307,6 +1307,7 @@ static int sctp_listen_for_all(void)
>  		return -ENOMEM;
>  
>  	log_print("Using SCTP for communications");
> +	log_print("SCTP protocol is experimental, use at your own risk");
>  
>  	result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family,
>  				  SOCK_STREAM, IPPROTO_SCTP, &sock);
> -- 
> 1.8.5.6

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dlm: prompt the user SCTP is experimental
  2018-03-23  4:27 ` Gang He
@ 2018-04-02 15:03   ` David Teigland
  2018-04-03  2:01     ` Gang He
  0 siblings, 1 reply; 4+ messages in thread
From: David Teigland @ 2018-04-02 15:03 UTC (permalink / raw)
  To: Gang He; +Cc: cluster-devel, linux-kernel

On Thu, Mar 22, 2018 at 10:27:56PM -0600, Gang He wrote:
> Hello David,
> 
> Do you agree to add this prompt to the user? 
> Since sometimes customers attempted to setup SCTP protocol with two rings, 
> but they could not get the expected result, then it maybe bring some concerns to the customer for DLM qualities.

I don't think the kernel message is a good way to communicate this to users.
Dave


> > As you know, DLM module can use TCP or SCTP protocols to
> > communicate among the cluster.
> > But, according to our testing, SCTP protocol is still considered
> > experimental, since not all aspects are working correctly and
> > it is not full tested.
> > e.g. SCTP connection channel switch needs about 5mins hang in case
> > one connection(ring) is broken.
> > Then, I suggest to add a kernel print, which prompts the user SCTP
> > protocol for DLM should be considered experimental, it is not
> > recommended in production environment.
> > 
> > Signed-off-by: Gang He <ghe@suse.com>
> > ---
> >  fs/dlm/lowcomms.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
> > index cff79ea..18fd85d 100644
> > --- a/fs/dlm/lowcomms.c
> > +++ b/fs/dlm/lowcomms.c
> > @@ -1307,6 +1307,7 @@ static int sctp_listen_for_all(void)
> >  		return -ENOMEM;
> >  
> >  	log_print("Using SCTP for communications");
> > +	log_print("SCTP protocol is experimental, use at your own risk");
> >  
> >  	result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family,
> >  				  SOCK_STREAM, IPPROTO_SCTP, &sock);
> > -- 
> > 1.8.5.6

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dlm: prompt the user SCTP is experimental
  2018-04-02 15:03   ` David Teigland
@ 2018-04-03  2:01     ` Gang He
  0 siblings, 0 replies; 4+ messages in thread
From: Gang He @ 2018-04-03  2:01 UTC (permalink / raw)
  To: teigland; +Cc: cluster-devel, linux-kernel

Hi David,



>>> 
> On Thu, Mar 22, 2018 at 10:27:56PM -0600, Gang He wrote:
>> Hello David,
>> 
>> Do you agree to add this prompt to the user? 
>> Since sometimes customers attempted to setup SCTP protocol with two rings, 
>> but they could not get the expected result, then it maybe bring some 
> concerns to the customer for DLM qualities.
> 
> I don't think the kernel message is a good way to communicate this to users.
> Dave
OK, I got your point.
But, could we have a appropriate way to let the users know SCTP protocol status?

Thanks
Gang

> 
> 
>> > As you know, DLM module can use TCP or SCTP protocols to
>> > communicate among the cluster.
>> > But, according to our testing, SCTP protocol is still considered
>> > experimental, since not all aspects are working correctly and
>> > it is not full tested.
>> > e.g. SCTP connection channel switch needs about 5mins hang in case
>> > one connection(ring) is broken.
>> > Then, I suggest to add a kernel print, which prompts the user SCTP
>> > protocol for DLM should be considered experimental, it is not
>> > recommended in production environment.
>> > 
>> > Signed-off-by: Gang He <ghe@suse.com>
>> > ---
>> >  fs/dlm/lowcomms.c | 1 +
>> >  1 file changed, 1 insertion(+)
>> > 
>> > diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
>> > index cff79ea..18fd85d 100644
>> > --- a/fs/dlm/lowcomms.c
>> > +++ b/fs/dlm/lowcomms.c
>> > @@ -1307,6 +1307,7 @@ static int sctp_listen_for_all(void)
>> >  		return -ENOMEM;
>> >  
>> >  	log_print("Using SCTP for communications");
>> > +	log_print("SCTP protocol is experimental, use at your own risk");
>> >  
>> >  	result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family,
>> >  				  SOCK_STREAM, IPPROTO_SCTP, &sock);
>> > -- 
>> > 1.8.5.6

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-03  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20  6:45 [PATCH] dlm: prompt the user SCTP is experimental Gang He
2018-03-23  4:27 ` Gang He
2018-04-02 15:03   ` David Teigland
2018-04-03  2:01     ` Gang He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).