[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180313114522.GC18164@hmswarspite.think-freely.org>
Date: Tue, 13 Mar 2018 07:45:22 -0400
From: Neil Horman <nhorman@...driver.com>
To: Kirill Tkhai <ktkhai@...tuozzo.com>
Cc: davem@...emloft.net, vyasevich@...il.com, jon.maloy@...csson.com,
ying.xue@...driver.com, santosh.shilimkar@...cle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/4] net: Convert sctp_ctrlsock_ops
On Tue, Mar 13, 2018 at 01:37:02PM +0300, Kirill Tkhai wrote:
> These pernet_operations create and destroy net::sctp::ctl_sock.
> Since pernet_operations do not send sctp packets each other,
> they look safe to be marked as async.
>
> Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
> ---
> net/sctp/protocol.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
> index 32be52304f98..606361ee9e4a 100644
> --- a/net/sctp/protocol.c
> +++ b/net/sctp/protocol.c
> @@ -1354,6 +1354,7 @@ static void __net_init sctp_ctrlsock_exit(struct net *net)
> static struct pernet_operations sctp_ctrlsock_ops = {
> .init = sctp_ctrlsock_init,
> .exit = sctp_ctrlsock_exit,
> + .async = true,
> };
>
> /* Initialize the universe into something sensible. */
>
>
Acked-by: Neil Horman <nhorman@...driver.com>
Powered by blists - more mailing lists