Received: by 10.213.65.68 with SMTP id h4csp2156437imn; Sun, 8 Apr 2018 21:10:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/z/SWpQ4//RZ+oo3MKqxB98aBeMhoUeW68NoQMWHIm5dj7xmm2vl/Zlx+fkDFIut7a8NUc X-Received: by 2002:a17:902:b60f:: with SMTP id b15-v6mr1611900pls.12.1523247004521; Sun, 08 Apr 2018 21:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523247004; cv=none; d=google.com; s=arc-20160816; b=uVBcspRQEx6LKp44oodgk7WvX+x99XxHLSwPWGxTsSyXhHiG8BC9lFf/YK5BIDdjvQ 8cBbLBQa/S2QWjOEcwa1s+DE9zQQ0e3a8eiN32qYtDXc7xPrpB5CqJgbaKs1y7YoUdjs 64LZb7qaikL9KuovCf3yvdlwC2/6YlXUGfYhBuDXPTHaDNNVpjvvfMoQE56JEqeMWKdm TJW3x3ZuoCPAW+AKK7uYyNHC1r+GI/vLKth2W1sPSGuEnaGbMNLHBk7M7Uq+doDa9BM8 3bz0qBHzMRoQsc9bHSyX9qIm8heQyIfs/vVrc1dvcpRafwR21b27xULSzz3zemqWs76B 290A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=M9CE1Q1nfaCweWI3pv9lgFRNPKfOwSy32PZihRdstbw=; b=U3sve+g4m3DIB1/J8n0xjpGB8PwdeoF/jzksjonMQwvm5apLI/9x0DyXTRbuXcp7KS HVzwWiS+1r8RH29VrgsnAcGM7i+eEM9DDG1bwMVWUG7TQGkMZlv33Mr0s+fit2syBHCt KwfNPZqgm88WeV8h031Rzp1Cu5x7ytP1n8EoF+OveGjd/guAQ5MMw3OotlLkWj2+Hoas 8r6UTESxySbkPqEDy99zQ/mlE50zayYtTJ4N+4SNhELCnPgsiqLobePentkOvJsbIs9X evlDY0ljwVsWJ+azoqkdN64bDcqjfEL6I3NjgD8LG9NbkHdtoVv6d5rKlEGp9MifF5y0 geyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=mdzmSqlk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1-v6si15291975plt.265.2018.04.08.21.09.27; Sun, 08 Apr 2018 21:10:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=mdzmSqlk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753798AbeDIEEr (ORCPT + 99 others); Mon, 9 Apr 2018 00:04:47 -0400 Received: from mail-bl2nam02on0136.outbound.protection.outlook.com ([104.47.38.136]:51875 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753214AbeDIAR4 (ORCPT ); Sun, 8 Apr 2018 20:17:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=M9CE1Q1nfaCweWI3pv9lgFRNPKfOwSy32PZihRdstbw=; b=mdzmSqlkbtobBjF74/6HdRjAo6QbPnkehWQwYQhdm2/WMGHc9zuRSrKOyXbGXQlrLQQSdSV3sx/upGWQTJRN9lLiJR0gfpjvrxGK1H8sJ32CbOO99+4uKW5tqYabi3Eof+qyll4E4CXA7rXve1R9guFAHKXzKiJ+lZsqRXjA/OE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1048.namprd21.prod.outlook.com (52.132.128.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:17:49 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:17:49 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Jan Chochol , Trond Myklebust , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 046/189] nfs: Do not convert nfs_idmap_cache_timeout to jiffies Thread-Topic: [PATCH AUTOSEL for 4.15 046/189] nfs: Do not convert nfs_idmap_cache_timeout to jiffies Thread-Index: AQHTz5ghRuu3YuiHrEelQujOqeLMug== Date: Mon, 9 Apr 2018 00:17:22 +0000 Message-ID: <20180409001637.162453-46-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1048;7:vR1BWSbOXFFfWiDYsK8xQJjmoctW2uAHI7NhCKEszfY+V9VxMikOuaLPNnP60JtgHWPdu75Um1rnd7KpIrC158GhwJ3WQWkUbWrIe6JyYYZBl2FT0Pmw2kO7ASL+Tl8WoH5iso7L6jTkD74voAniHsjDmTwWBosA6AU8q83HDk249VC6jHhNve0afV1L0gx1CUmUxS4YV4bp5V5fS4hSornIMgyCDpuV8IISjFZpL7pNYg+A7vxCQTmyvstAkaQO;20:M/g0HbcKwnlKsZTj6/cUBhRN0kLiiWuTmkce7kktd3PliXGHXW48qlr8LIa9HONog3z78Ed1x2wtwglauLIwVzLzvqR9t8RIiLpaOSVWA4TWEmA8jE64nJAVNIX3hbSG+PJl2D4jhxPTXZNUoKMGHa4UZo1CteMY0Go4Pvmn3x8= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: fddabc81-99a9-41b2-dfae-08d59daf53b1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1048; x-ms-traffictypediagnostic: DM5PR2101MB1048: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1048;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1048; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(376002)(39860400002)(346002)(396003)(189003)(199004)(86362001)(1076002)(99286004)(6116002)(110136005)(3846002)(54906003)(22452003)(3280700002)(105586002)(2906002)(76176011)(4326008)(6512007)(6436002)(6486002)(3660700001)(6666003)(7736002)(59450400001)(86612001)(25786009)(2900100001)(14454004)(97736004)(53936002)(107886003)(68736007)(102836004)(36756003)(6506007)(26005)(186003)(106356001)(305945005)(5250100002)(72206003)(478600001)(2501003)(10290500003)(81166006)(5660300001)(8676002)(66066001)(316002)(81156014)(2616005)(10090500001)(11346002)(446003)(476003)(8936002)(486006)(22906009)(217873001)(6606295002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1048;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ZiTxgiSW+YiMNtGrG7/B3V//ipVbdlKLJY7TpTxscvOeLiMEd/oPiYGN3x/6B2OUxcrxjA/ftoGsQPe0rcOHtRryTb7CY6/c3KBTnaeeSxSVOCNPs7npujNKS6I816zHvGdbXQVeNSMPwGZWUA/Rr5s6UphJsXSf3ibf7V5wf1pDcUMg+WASmCrjLORo9HxjXZAZ2nBVOhFIIJShxOPWlVsdIE7ACLLawv0UpzVq5aZOf0JloeQc1VDn3G8SRuuhzCGiePG1jrkwPaIYLkxGWJMVgt/mnXIDz4KhZNDm2fd3xSXiuaspapcx+g+u9FhVJ7aLFR0zTtwZ9dMriNHC/ySjRv75a9d8Xu2ouqAFw6LPbx+Xwx7Tn7hilm6Us7ounP3WErIPu1sCpSibOT6A69WK1TeK6C1+XQ3H3qPEzGk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: fddabc81-99a9-41b2-dfae-08d59daf53b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:22.3383 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1048 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Chochol [ Upstream commit cbebc6ef4fc830f4040d4140bf53484812d5d5d9 ] Since commit 57e62324e469 ("NFS: Store the legacy idmapper result in the keyring") nfs_idmap_cache_timeout changed units from jiffies to seconds. Unfortunately sysctl interface was not updated accordingly. As a effect updating /proc/sys/fs/nfs/idmap_cache_timeout with some value will incorrectly multiply this value by HZ. Also reading /proc/sys/fs/nfs/idmap_cache_timeout will show real value divided by HZ. Fixes: 57e62324e469 ("NFS: Store the legacy idmapper result in the keyring"= ) Signed-off-by: Jan Chochol Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- fs/nfs/nfs4sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4sysctl.c b/fs/nfs/nfs4sysctl.c index 0d91d84e5822..c394e4447100 100644 --- a/fs/nfs/nfs4sysctl.c +++ b/fs/nfs/nfs4sysctl.c @@ -32,7 +32,7 @@ static struct ctl_table nfs4_cb_sysctls[] =3D { .data =3D &nfs_idmap_cache_timeout, .maxlen =3D sizeof(int), .mode =3D 0644, - .proc_handler =3D proc_dointvec_jiffies, + .proc_handler =3D proc_dointvec, }, { } }; --=20 2.15.1