From patchwork Tue Mar 13 10:49:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10278165 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 ABFFA6038F for ; Tue, 13 Mar 2018 10:49:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B3C428F27 for ; Tue, 13 Mar 2018 10:49:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F3CA28F3B; Tue, 13 Mar 2018 10:49:35 +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 D9AE228F27 for ; Tue, 13 Mar 2018 10:49:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932812AbeCMKta (ORCPT ); Tue, 13 Mar 2018 06:49:30 -0400 Received: from mail-ve1eur01on0125.outbound.protection.outlook.com ([104.47.1.125]:45121 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932772AbeCMKt1 (ORCPT ); Tue, 13 Mar 2018 06:49:27 -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=qsjr381Onbh63yUwb82pEID30QXRishBanlxdzh8BTM=; b=AmRcIhBKoscGAic3JTSPUg7Z091rmQvWBJdu+dl+j0Jsfg2eZJ3pzOOarNRdE091InMIh6raodUobhydgkuhw+5J/bkQV5uAfRDTEe/sV8j89QL22DY93Sxeb2ApDc+HnHyjy3vy1zt+4OewzIRoyjIY28o8sknXZrelju8mJSg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by VI1PR0801MB1343.eurprd08.prod.outlook.com (2603:10a6:800:3b::7) 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:21 +0000 Subject: [PATCH net-next nfs 1/6] net: Convert rpcsec_gss_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:15 +0300 Message-ID: <152093815494.8636.6607369744413088370.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: AM3PR04CA0141.eurprd04.prod.outlook.com (2603:10a6:207::25) To VI1PR0801MB1343.eurprd08.prod.outlook.com (2603:10a6:800:3b::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9282a031-2a20-434c-e304-08d588d014ed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1343; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1343; 3:1FcVQZ3ZRrpo9vAdx/WWqDHYM/HelL7bz6rw/jYW3pz/I9Ssng/OxL9EaU3pBGYJFkQDAKButgcO4POV7l+fPUfKYE5Zg1wah9l5TDdVLikfgkc0gIYCfku7Sq8KaKEgeDc4D8gr/EWWi7NWWB2kWaKC+IVdM5WmPJQvE7pCUzWWLvxkeAWORpn5OPyZK0d52+CXbS0QgENLWZSx8TwVZalJoe5uRx7ML/6MwbstEKh24xIWBVS+pLIYfsYNUmfU; 25:+j4k4o+snbN7CtEXjASdh7Us1vCWeyEK+CXU5U3QumcluCRekQIplivDfOoAowpsJqCjxun8zgvFcWJuECHKhMezKHdEu8qZ23QZr/rZ5FqrLAPEWcGRoYP4CT0A5LTxrNhqQkK1E5QxeRBpkhW+cMrdXztHooaa+d/dzq3SpVSfMZ0w7bl1vkunA6htgm1j/2s13tY7BwJwdTqZGBS4bWindo05FRBFcMUX29a3/IePOdwmTX/AfzzhzWQOIEjB4xoT6R/fq5ZiT3gioWiMNxP9166Bfix2N2IElq8XR0LZElPRSSIxnh4okAfCtOudWePulFaLiH9ZCu11+CEjlg==; 31:YoBf7eauCtDwezS2uFiFB5jlAlZ1y5gn8dOOlGmekXarHpybRDKh+03x8ErqH6U5kv7gdqK1HAwGup8ARj3zzygFEInr7cbnNbyEscU3yIfuoDt8AtCjh1NhfFhN36sReupQeL/eVmLTHdWTCN9nJf4Mr1gjwBgARZB2UOLPKoIblbG1NprJU3+rfMv9Qq8BzUzFhbrM6hIF+E4j6QSMv6hsnib68ksfDE/mpKboSPk= X-MS-TrafficTypeDiagnostic: VI1PR0801MB1343: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1343; 20:rP+1lX96rgKqJ3gkSlt4hyZxYWbhk+bxt9h0N+gRTx0qgWXJQKA9x7E1r1nd1t/pOxMBaSWRCni09tGPmL6B6eye66vK09Ngy0N8znDbWhGUEq/GPy485Bs6nZDNp51GmEtJZqCkYoODCaHH7D4aFO8oozrNzP46WD0GmWvNd5SSC/0/jTvpV88lwL25nuG9kDDQsfKdDkkiIu2X1lRMwOIC6/ErZ7n2PKiBsNeK9KIqJ4QIFGyERw7vT5xFZFsE5bWRRN28une6i5wYK63YV510nocUD1cZr3OoTLLNCY/ZQXEjFITsHOBisTfETivT29LzNUbAIuRiTCdRKxIu9BO+sAEgAVfcxFK4Lc4mcLWBIkqJO1tZu8V+2afqDzNJuP/f1nZkBuYBOdf8VE3icCfd6OYwowh1ckQk54r26YPIgijQlmML39KWvSsguJ3q3dMy+uAYBKspDhzpAlCjDq0t1j/EKC2VS1QC4lKhuw36AjYwpoLVjyfwPRJxquxt; 4:ui2PhgTQUI/ZVpnWns4dFkdS59yDrOm0XiCoMgfKNBd4I73LiNTPT+fg6fNA0vPJrhpTcNHBN2zfH2o+ui2y/8ZZf0bOVIt/XCjH8bX5MIncuewwDLjWYzAbg75aawEIeno0hHm0eNKdaEX/+KNuf582x28/EkOUe7j/AMzwAXBzDWkNlgEwNkYApuXCccTUBgHqRgfqFFHj6YGsLiL5BMVev45lTvmMrU8u/XdguDeKIg/13PRgsNjkDKqld/V2gF2ED/xMDfoPhCGP8xVKUA== 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)(10201501046)(93006095)(93001095)(3231221)(944501244)(52105095)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0801MB1343; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1343; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39840400004)(366004)(396003)(39380400002)(376002)(346002)(199004)(189003)(52116002)(7696005)(97736004)(6506007)(81156014)(103116003)(76176011)(55236004)(386003)(61506002)(2486003)(7736002)(23676004)(58126008)(47776003)(25786009)(39060400002)(33896004)(53936002)(7416002)(68736007)(5660300001)(8676002)(2906002)(26005)(81166006)(55016002)(186003)(9686003)(59450400001)(16526019)(8936002)(106356001)(478600001)(6666003)(3846002)(66066001)(316002)(230700001)(6116002)(2950100002)(305945005)(86362001)(105586002)(50466002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1343; 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?MTtWSTFQUjA4MDFNQjEzNDM7MjM6cUxMeXZocUpVMTRRK2ZpL3BKUWhyRjd1?= =?utf-8?B?LzZjNHY0Z29pS2lnZHhPUXNtaFRBQ09ka1JDZE1LL1ptWHMxSUI1RHJVSjFp?= =?utf-8?B?Smc1MjQxdXdvUXBDOSt4Wnd0UVJ3SzdvUVRkV1JTbjJzbzRiTTB5L1JNUjdB?= =?utf-8?B?Sk9nQWsyaktsdVpleGVoOGhXelBORW9FaUY2czMrNmUzMW16NHVLN2EwTnQr?= =?utf-8?B?ZHVjbmJSSS8weFRIUWs1ck5CMnhIS3JsMmhBNDhLWVNKLzBNaiswalgzT20r?= =?utf-8?B?MUo0a3ptV3ZqODRKUitUc0hZYk52MnhuQ3VWdEI2WEdxTmE1T0hRQXlTMnA0?= =?utf-8?B?dHNvL2xlKzNhcWZMclhXSkZldVZPaE5MRXV2cy9kbTR5cFhsay9vWG5ZSjhT?= =?utf-8?B?Vlp5K0xaRGs5SjJKZVVCL284ZVlVeVIyaVZ2UzVpdlJqQmVyQzJJSUdHRUxv?= =?utf-8?B?L04yUFNHbUpteVQvL0xJd2dRK2x2eGduYTc1dUE4OTBhK2xsQ1AyTGhJUW9t?= =?utf-8?B?YUpZYUJROTg3WmhmcXVGbFRaOW1kK0lGM3BiME9k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tD/9d1HM7q1hN9s2GDov0k=; 24:zgyYnn9ntvMeY6E0/c84jedNAyQwCRf6TpcPFHOfyUTlBZHi/eHJzdJseEigcAyaOQ8eKjMPc9Q1PT6UugbURp1CG8Xcjva/ewZA5OaFGqE=; 7:/0ijE5yd/hYwCfUGW3L5U3wm8JyIX8C4q+oGBPr+9pRc0MimIz0P+8aUqscE3jK10gb7q1c9jmkW9grHa9126SepTDnQ4HkPatbU9QVrJX51FgSiHE5n1SCsQhXM860JPJHfGM+5EFLRACYwGPA6vp6SP4lthriO8sFjfY1AbX6GsbMHmaDR2LcDJlYzvWqDB1nU7/E6Zb1xokN5VnnPGG+taHOTgDmfpxENnO0Rrb4Gs2sr9VynD3g7F/uJXr3U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1343; 20:Mha366Yi7AllLhLge3D21CkrrBiEqoN11l2mB2sIbbGDm4QgKLTZutSHXLzG7EqWELtR7gpEyT5N7MAWZcCLTx2Y2SYTFxy9g7wUIbYlMJqhJxoZQ8f1pP70OFJXcYG4xE7LlmBJGtcl7mfYBCNjzz0QSRUwgDaOxSWNXVc6MN0= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 10:49:21.7096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9282a031-2a20-434c-e304-08d588d014ed X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1343 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 initialize and destroy sunrpc_net_id refered per-net items. Only used global list is cache_list, and accesses already serialized. sunrpc_destroy_cache_detail() check for list_empty() without cache_list_lock, but when it's called from unregister_pernet_subsys(), there can't be callers in parallel, so we won't miss list_empty() in this case. Signed-off-by: Kirill Tkhai Acked-by: Anna Schumaker Acked-by: Anna Schumaker --- net/sunrpc/auth_gss/auth_gss.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/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 9463af4b32e8..44f939cb6bc8 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -2063,6 +2063,7 @@ static __net_exit void rpcsec_gss_exit_net(struct net *net) static struct pernet_operations rpcsec_gss_net_ops = { .init = rpcsec_gss_init_net, .exit = rpcsec_gss_exit_net, + .async = true, }; /*