From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ve1eur01on0095.outbound.protection.outlook.com ([104.47.1.95]:37505 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755164AbeCSLjM (ORCPT ); Mon, 19 Mar 2018 07:39:12 -0400 Subject: [PATCH net-next] net: Convert can_pernet_ops From: Kirill Tkhai To: davem@davemloft.net, socketcan@hartkopp.net, mkl@pengutronix.de, linux-can@vger.kernel.org, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Mon, 19 Mar 2018 14:39:05 +0300 Message-ID: <152145954531.26024.3744883546191004693.stgit@localhost.localdomain> In-Reply-To: <152145944801.26024.17416146842279639788.stgit@localhost.localdomain> References: <152145944801.26024.17416146842279639788.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: These pernet_operations create and destroy /proc entries and cancel per-net timer. Also, there are unneed iterations over empty list of net devices, since all net devices must be already moved to init_net or unregistered by default_device_ops. This already was mentioned here: https://marc.info/?l=linux-can&m=150169589119335&w=2 So, it looks safe to make them async. Signed-off-by: Kirill Tkhai --- net/can/af_can.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/can/af_can.c b/net/can/af_can.c index 6da324550eec..e899970398a1 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -954,6 +954,7 @@ static struct notifier_block can_netdev_notifier __read_mostly = { static struct pernet_operations can_pernet_ops __read_mostly = { .init = can_pernet_init, .exit = can_pernet_exit, + .async = true, }; static __init int can_init(void)