From patchwork Tue Mar 13 10:49:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10278177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8BFE26038F for ; Tue, 13 Mar 2018 10:49:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78F7528F37 for ; Tue, 13 Mar 2018 10:49:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68D1F28F45; Tue, 13 Mar 2018 10:49:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E54DD28F37 for ; Tue, 13 Mar 2018 10:49:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932883AbeCMKtt (ORCPT ); Tue, 13 Mar 2018 06:49:49 -0400 Received: from mail-eopbgr00119.outbound.protection.outlook.com ([40.107.0.119]:41312 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932903AbeCMKtq (ORCPT ); Tue, 13 Mar 2018 06:49:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yw8FWoS0AHLV8qQfm6oEp98Od0KoySH34NKPqLYSHPY=; b=iCxeb55BpTRIYw/Cx8O+OoAdXjDOx65jwQRJCsaB/p7sQcvwASbH7I/SqvshiUdtUTK049ObWeY6wU8gKFSwK6C6vAhBdnXHV/ED/VkukAuTY1v2ca8MYO48v7lweX4hN4bhzObFRKIX1t4aa/wAWhF55F1aa1lGlPW8uqrem6o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by AM5PR0801MB1329.eurprd08.prod.outlook.com (2603:10a6:203:1f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.12; Tue, 13 Mar 2018 10:49:41 +0000 Subject: [PATCH net-next nfs 3/6] net: Convert nfsd_net_ops From: Kirill Tkhai To: davem@davemloft.net, trond.myklebust@primarydata.com, anna.schumaker@netapp.com, bfields@fieldses.org, jlayton@kernel.org, dhowells@redhat.com, ktkhai@virtuozzo.com, keescook@chromium.org, dwindsor@gmail.com, ishkamiel@gmail.com, elena.reshetova@intel.com, linux-nfs@vger.kernel.org, linux-afs@lists.infradead.org, netdev@vger.kernel.org Date: Tue, 13 Mar 2018 13:49:38 +0300 Message-ID: <152093817836.8636.15497529959872953849.stgit@localhost.localdomain> In-Reply-To: <152093778442.8636.10592672493816457119.stgit@localhost.localdomain> References: <152093778442.8636.10592672493816457119.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: DB6PR0402CA0020.eurprd04.prod.outlook.com (2603:10a6:4:91::30) To AM5PR0801MB1329.eurprd08.prod.outlook.com (2603:10a6:203:1f::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65ead692-f813-4e24-ec2e-08d588d020e1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:A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8IMgT3Lvt0QcRJvQbWldM+mP9NjReK8sLn8pekLWLdgDA4GViYaJJbd4E6m86V9XIwcnx59latZxB9yFjLgITMEaRwHdxYPFOq3iW22ZmwpgPUojvfRze6zc0XdeXCtU/RbZQ4gGWkth+1Oj9AA+is3XckViCLGemvVTicePvgMBaUkaRja8rxMIxP6JX938C+H28MWLHMgIEVdzmPJtwoiyGoaLe7unabT4foMisdRoq8d5lbN1nG1SOUbs+iTrbLvykkcr7lR6/BTn/FjTsSTA1cYhDO2gxfQac1bCVg6vdMmr49bzm/Ypn5rLBtO9bmY794/7G6oiHgHKH8saXAShYBibDdZVcAuL5WhHlt+dYKGbT61fAmo7tiGqH0pjkddlPBDPj8nnGG803spZxhn4; 4:fwAK4dteEfRN12311DhSO36Km18rll2d/zu9JBjeqDzHcYuJ3+Uypzu8fWJX+iLor/kSqvKWLeItHXi0MQxYyjYtyrGPUD/9SAli7fM/emmrrF2DwjMHomf7GgpYM7Elm1287JDkCBqduPNvJNrh3GK/CKDiqPtEjhiWULqiCqr9GOMIeWNHPlULZMMow+CMbWjciQXDYxTnpxREYt1HEgdgqhocbTnRa4vcjQB8i7UTshHvJQ/TJIeE6BUvw+H2ac5vBu/Fi8wjdWigj0Kc1g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231221)(944501244)(52105095)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM5PR0801MB1329; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1329; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(346002)(376002)(39380400002)(396003)(366004)(39840400004)(199004)(189003)(305945005)(6666003)(106356001)(86362001)(2486003)(23676004)(55016002)(8936002)(61506002)(81166006)(8676002)(53936002)(81156014)(316002)(103116003)(52116002)(6116002)(3846002)(7696005)(39060400002)(9686003)(76176011)(2906002)(33896004)(2950100002)(58126008)(7736002)(186003)(25786009)(478600001)(16526019)(55236004)(7416002)(47776003)(50466002)(105586002)(97736004)(66066001)(230700001)(68736007)(5660300001)(26005)(6506007)(386003)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1329; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjA4MDFNQjEzMjk7MjM6NmM3VEdWaFJxN3RkbGhVRmJkQkNQcW9D?= =?utf-8?B?UTUwSXJ3QTdBcjRGaFAxZUtTNjdSelZCMTkrZVB6VGdiNjU0V21XQkFBbllW?= =?utf-8?B?L2p4S2k2aWZtbHVhWGVYT09aY0l6OGp1MU5uY21oanE0S01mVlZxSjFOUWhy?= =?utf-8?B?NGxpQlpNV2VWbUZvSStyOVhSM0NkRHdGelZzRGQzSlV6djY3NEFpb1czeEFU?= =?utf-8?B?TVd2TXZsSlY2dmxCOTg3RjFZUk9kaitsRVlIVnVJdW9zMkFiWW1wWTBiY3NN?= =?utf-8?B?SE1tN1I1eXJiNnpONzNrZ1pWdG5oSk5UY1EzTWNzVVNabHFUdTh1VlY1NlRI?= =?utf-8?B?bVVvODk5ZVJ4MG1VNFlBKytNNEZDS0lpSXZGRFdUWDFOaVdxNVUrOHlOS3kr?= =?utf-8?B?UiszYzMybU1MbWdpLzNsenhURWlUZlpHdExzK0lLV2o0UzVWRXFXenZoM1hl?= =?utf-8?B?cUpQZzdkQzM0c0lHeTNFMTNsdENtK1hXdjlQQVcwM0lxRXJkQW9rMGV4NWpY?= =?utf-8?B?YlpRSHowejRsbUZPdFBlVEJUSUdIdTAxZEFtTUx2L0FKd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IxgwoJbDXjAxm8U90VE0=; 24:76CJijdPZ3qtq1xvRwJKR68m8wpfmXhgChyr0yODzl5PF1OD2WXuaScdHcansHk/coAsrKWmgRLtyKjYuGP5XkX9EA0GuTX71ef6nokf9AI=; 7:wt5sW5yedLQCFK03Drg5El9BG0JbY8d+KbsA3aN/n/Sq6/2yeHSFMa5sR+N0RWDgyxILbrz2g7nakxDN27099oqzTpdobUADIh6Ab4N7I3Dy3E/1pWnDVec7Sd7SbXYMww73/bYPSbe5AAk/KuCPyF7mH/DkgZgqiaGClptgdCF1zyXM3N+h5gFQqz/CRzPnkdFwqzKJAaTSKZcK84R3DUdQWHwj3QCsa742/2J6SqZcZ8hsk2rZHLWV0wfCAG8l SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1329; 20:K40YW1xys9ttWUUPVdQfUwR0LFMAsOwhvVryAafEP/i4WZMDoA/4y9de6g4wm9N/vzF5HvEKCHmqloSrQVPXODyGLidwfjXAuVv527BBG3fxyi4sCLI+X+6FblW+JCngRy7S69cBwS3nmrnXBCrU+9L56o3Z8LkcRh7Ijl+6Ecw= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 10:49:41.5714 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65ead692-f813-4e24-ec2e-08d588d020e1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1329 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These pernet_operations look similar to rpcsec_gss_net_ops, they just create and destroy another caches. So, they also can be async. Signed-off-by: Kirill Tkhai --- fs/nfsd/nfsctl.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index d107b4426f7e..1e3824e6cce0 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1263,6 +1263,7 @@ static struct pernet_operations nfsd_net_ops = { .exit = nfsd_exit_net, .id = &nfsd_net_id, .size = sizeof(struct nfsd_net), + .async = true, }; static int __init init_nfsd(void)