Message ID | 152093816841.8636.4371549856827439735.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-nfs-owner@kernel.org> 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 509206038F for <patchwork-linux-nfs@patchwork.kernel.org>; Tue, 13 Mar 2018 10:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FDB128F27 for <patchwork-linux-nfs@patchwork.kernel.org>; Tue, 13 Mar 2018 10:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3306528F3B; Tue, 13 Mar 2018 10:49:44 +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 0B5E028F27 for <patchwork-linux-nfs@patchwork.kernel.org>; Tue, 13 Mar 2018 10:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932897AbeCMKtk (ORCPT <rfc822;patchwork-linux-nfs@patchwork.kernel.org>); Tue, 13 Mar 2018 06:49:40 -0400 Received: from mail-ve1eur01on0100.outbound.protection.outlook.com ([104.47.1.100]:6748 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932885AbeCMKtg (ORCPT <rfc822;linux-nfs@vger.kernel.org>); Tue, 13 Mar 2018 06:49:36 -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=qgWjXA6ic+utiuPpYa/lgDzH8F2eUxEnkx94GTMCOBQ=; b=TybNqStbH0hxlPWc3YiMgMRgQwxCWXp4hFiowNuxiJSisr51E+Kih6e42H9M+6YuVmKtaeDZ1GUtGouOpbpvpv00ILc7yM22HEtzxeiNg7BnGzhAXRuM18vFWYwJfK5krtrDj+Bayv817USiw+2Afy3fWRDRYJofv7/e0I0NBU8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Tue, 13 Mar 2018 10:49:31 +0000 Subject: [PATCH net-next nfs 2/6] net: Convert sunrpc_net_ops From: Kirill Tkhai <ktkhai@virtuozzo.com> 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:28 +0300 Message-ID: <152093816841.8636.4371549856827439735.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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR06CA0147.eurprd06.prod.outlook.com (2603:10a6:7:16::34) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 19e33be4-140d-4612-931d-08d588d01ae9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:uAnLIZxBus0iNzwv1e4URD0oeBGlJGOrDA5xrY76rrVrvYFPPRIeFhpRre8FViDZVR+3UmyrrpNtVm0eIUN39bdCjyn9BajWF6axnL/2zXTKzii/lMe1RyB5BoLN77BYkDmPSPBWVB36kry/ibLcypi57tkF4ArcbiDqLBtuOfY7oJJgF+HnOlNn0l+H/cPx/lNmR1xlGIP8OAMeCqCfqd6ornejHwitsdNM9NUjpBpbrsufMhk3aqVDV9Yp9Aq5; 25:J8Rq03LB3vGojW1DB+oTrQsfLn6a39PqE8ZJW6x3vdCGKk6IUfLjHYAqJW7V7OLZ/vHwJEp9pQy8YvN6/GfuUtI+FWZAhcy17LKQ1ZlANOwAF3HzCP/wgSLgsftqo/bKThIcwLEGlwLw+FW37qR3UR6DYL0cir+Op+BTGURShBpVz1+cRDqhEZfevNrQFcmFIm43sajTe7OybNaPYz4/5pA9jWGzl8lQ5B05auNhHroVtO4vyC6BpBs1LNPpc64b5L7UorX0cUPs5vfVmf9IilFUygkDg0smPpSzGtR9wc5j+tlDwPsem67comy0h7vzVe96lFqvTrdQk1eM/GQ/1A==; 31:gFjnE6kYSrK5q1BRKul36f7fOtBOLl21Z5ADz4YxRFURVsL2rXZAR7CohgheQef3t0NaVAoqpS3/J0E6gmdfnI9iu/g5LE8MhepJcbBTQHKrmr+LdqjSoVA/Kha7DUNyFlvqVemg8Dfsv+0FkBIHmJ1H9A51a4iaB8CPeNj5EUAuB+athDDiVAwGEylIv6SqR+Nc8dMMJ2Z/K8ebRJ3VTw4b6KxLJZd/bloi/CECWv0= X-MS-TrafficTypeDiagnostic: DB6PR0801MB1336: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 20:wyohLQi8lwSPGWoiJJFu862kHAC1CQMz2aULp+3upaB9wvz2dA4aD0IYSbqfI7HhRd5GWveD+UFmVwO2AuLWTKoyZG1oI6YJEU2mys67Aujq695Tk8Dp2klPuSrO4T7HP2kRNvTL8STB/gOAPOJtUn+7KGHmufnHu56aOD/9DoVJ6PnXTtKvv3pBIpQkm6jn6AALatqQdyyUYpjj/u5q2UngQXmwxLzk9+7a+PMHzP8Icre5WyTYxBawv20oEZhGiR8rkpe5CV5R8+dcq5LP6CoMaWhpLb+YJhGnyO5c1fSWk5B976yisAzxFc+bsCFpzk0PGMdsQ7umnrvVjEfi2gXcPfxn7eJCf6wiSBX1YFEFn90v7+cW/wLpURK+itG6rSKO9BI0O5yjIkxLsjM6BtT56skeFxqW1Kb1LF2VEbGNSO9OfePBAA6sPKJW65c3u+iwxzNKPRKOLsjzl4YzP+HGbKKYOeioXobqjrdsONJ/VYnNeNxiegiyURgdzdqa; 4:tiZcD13DQodd3Qg6vMl46928gp00rO6OnhA3M3OCf1pg0BnFyu5mt4CUbDE68yFphiEArGukFAZUGEvogcEl1AQA6uJmQWbccUKSJZRgLpi7v8OsG/DAVPME7Cp+1rn3UydcFkM9OL66k6Uclen19kBVec2neDmuFscW0TyuInK63hndyovGbrXl4d3Zxsl01+5ZdjhVN0ZstC6U3X3r2GuwyO6t9hWnV7jQIu0ZsbRbPrIwvrBOniQw5NKKTvHe8Eg+BcNvMDnLedYSBi8L9w== X-Microsoft-Antispam-PRVS: <DB6PR0801MB1336584CE24B029276F05897CDD20@DB6PR0801MB1336.eurprd08.prod.outlook.com> 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:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(39380400002)(396003)(346002)(376002)(39840400004)(199004)(189003)(55236004)(230700001)(66066001)(97736004)(386003)(186003)(6506007)(58126008)(47776003)(61506002)(50466002)(106356001)(55016002)(39060400002)(25786009)(16526019)(26005)(316002)(7416002)(76176011)(68736007)(2906002)(105586002)(9686003)(52116002)(6116002)(478600001)(3846002)(8676002)(5660300001)(7696005)(53936002)(103116003)(2950100002)(6666003)(86362001)(2486003)(7736002)(33896004)(81156014)(23676004)(8936002)(305945005)(81166006)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1336; 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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6UXhMREpkMWxSZTExKys4VlgvNlo1QlpQ?= =?utf-8?B?SFRyOVJpL2JrV0ppWnF5TEJYN1ZTZkh5ZnZuY0R1dkRFYjRrQnlOd25LSlB5?= =?utf-8?B?bHNlU3lVL1VFTFdONlVCOFZDWDV3MVc5RzYxYlExUkowVTI5K0ExeXAyOGFP?= =?utf-8?B?L0hxWW1YbWtWSW5wVWJlZmVDUk9vN3VpZS9BWnM3V3JFQWt2aGo2S21ZL0x6?= =?utf-8?B?YSt2VW1FN2tOL1JWZWc1REtCbDVlYk5IbUg0WGNFaVZJN1lZNGlOOHJMak03?= =?utf-8?B?UG5IdjJlcGFKRHpNUGtKZ3k3YlNGSXQ1ZmpCYkRGaGN0S0czSEsyTUhVRFVr?= =?utf-8?B?Y29oY2hkMnl6TVQzR0NqUys0OVFaQVZWYTFvRWszZ2g4L01oR1V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VQXrNWUBjhK3+0caKvSrLaMAJGvsyYNwGE4UKncXD4=; 5:aVV79N7z1X8VTgnhxvB4IdeeJHbnlNd6SR8Hpr975ToZj8eBe3U2Osotzv6vYx9LIsqzfQBBwb4EQxpti+onkXia49+IUKAgOmfzUzO5A6a/DCQ3213H9zqqsT/RO7uhavxotQeu4JWxwaTod8WkFWWakk5/hHfyhqTKMBcNEfg=; 24:Fm9TFckPx0LvGQwOjvNKydfAvz/j7ETAtSrDdijMRrBjc4nNYtW0YOnoHHGwR63qB97yvaaNRnOZJeMRHvH2UG64shec28YQGT4ZrCkCZz4=; 7:VukT6nou1aBU+uWrt+Y29KFKD2QnM8U25Aa0QKYGBYjmuxRt140HcNmSZancr3oORDlgLYyrpNQ7EwEfq/jS1Fg+oVyGZ2ipWoAM3odoNj+UGxEn2lG6J9NlMVyrgAyz9FwG7oJTW963BuPy3nPdhCfL0YgKBZNdORvHHP33wZ2e00GNEMjsFzJXdIrj2QebPArE3ikQXJhRtSNTtcxc3WZEdSgPdUTd9P+tjnqRJ3P4cWUrBS9AZrfWPQKo6cwV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 20:IuvHvXBqhVUbJkXmi0lysGhsbGFs0eXqduIvtw/smGtyPJ4WP3jAKc66fdME8eUldrWf+RvFyYnNUU6GXHvnna+HtTIy6ImTlo3bHuhywqSncgHQuxLwacKth30vfM4zAEG9o0LjHZvyXZX5k/RjUMM6/FrBjCMX4m/boA+beNM= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 10:49:31.6851 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19e33be4-140d-4612-931d-08d588d01ae9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1336 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-nfs.vger.kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 03/13/2018 06:49 AM, Kirill Tkhai wrote: > 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 <ktkhai@virtuozzo.com> Acked-by: Anna Schumaker <Anna.Schumaker@netapp.com> > --- > net/sunrpc/sunrpc_syms.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c > index 56f9eff74150..68287e921847 100644 > --- a/net/sunrpc/sunrpc_syms.c > +++ b/net/sunrpc/sunrpc_syms.c > @@ -79,6 +79,7 @@ static struct pernet_operations sunrpc_net_ops = { > .exit = sunrpc_exit_net, > .id = &sunrpc_net_id, > .size = sizeof(struct sunrpc_net), > + .async = true, > }; > > static int __init > -- 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/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index 56f9eff74150..68287e921847 100644 --- a/net/sunrpc/sunrpc_syms.c +++ b/net/sunrpc/sunrpc_syms.c @@ -79,6 +79,7 @@ static struct pernet_operations sunrpc_net_ops = { .exit = sunrpc_exit_net, .id = &sunrpc_net_id, .size = sizeof(struct sunrpc_net), + .async = true, }; static int __init
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 <ktkhai@virtuozzo.com> --- net/sunrpc/sunrpc_syms.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