Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2510335imm; Thu, 7 Jun 2018 11:53:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLBaMqV4UZcN7sq8Zr/T3wWBY204wGGE/lEW3mhL69NBexweNSBHv3hOAH2Iwd0rcgs+pGf X-Received: by 2002:a17:902:758e:: with SMTP id j14-v6mr3222484pll.160.1528397583413; Thu, 07 Jun 2018 11:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528397583; cv=none; d=google.com; s=arc-20160816; b=dITfdCGujmyDKE2vbW3ne3BZq9W5RVixSl5Q6MlV7pLTABB6EU+6jBnhLOW9ln4SFu xp6Kjfmv9aThCwP71sWb4FB0FgqSmbBds+69NAIm5lvT6e8hfCaBJ00xyNOwanokgANP M+NFq5dP9r9cmzLbTVkRjiETilRisrhJWhEjqe0DfiZl+uqkB0yM2CF6QspK0a7mx0G4 MsFXinKcAp2ZR3RclnbRnSjPOgD2iO/jree/pZmDp1YSgD06UwoqAh5Ok8ldSXvP4AVw 7VPymiW9Vt2OD9nayPQqwSVuryLLzyv13Bqg0w6OEc83aL0vyFgsoNIbew04J7wgkdiJ 6ilA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=eUSc3p0Jebq1fF2hmXBUW5c2nz3bOZxEYjl4+g+7J9w=; b=R8roxMM8m2l0uz0B/8xVhvk/ZfN888uIqCBzdJruY/CWCnr2Mp40DL5vMexNuQk2r8 KocyVj6udYcwMbamauss0zkQEppbcxKTV0wtzqdStcdvSyO7a63JQZIAn/mWa5qgmJnj IA1hveH+aq9pn/mFdCZascmbzC4MyZucAwR7YjHRHXUibXf6TVTXCZ0jcqHrwtmNP/Rx p0mGlm9qewA+EY9jJEMBBHejZXLcTRf/NOGO4jyoyXNdQltyRIVzUjtvazG5JpJjOdWG 0ObFBHCVrvP4hkORoZKpMbclHxSwK6GLmJ9jcVvsr9O6jBqzHAz+1MHg+akdvNHNaw1P 875Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5-v6si5122549pfb.244.2018.06.07.11.52.48; Thu, 07 Jun 2018 11:53:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935580AbeFGP1A (ORCPT + 99 others); Thu, 7 Jun 2018 11:27:00 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41122 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753712AbeFGO53 (ORCPT ); Thu, 7 Jun 2018 10:57:29 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbm-0005hO-Pq; Thu, 07 Jun 2018 15:09:47 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb3-0002sf-4Y; Thu, 07 Jun 2018 15:09:01 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Jan Chochol" , "Trond Myklebust" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 141/410] nfs: Do not convert nfs_idmap_cache_timeout to jiffies In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Jan Chochol commit cbebc6ef4fc830f4040d4140bf53484812d5d5d9 upstream. 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: Ben Hutchings --- fs/nfs/nfs4sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/nfs4sysctl.c +++ b/fs/nfs/nfs4sysctl.c @@ -31,7 +31,7 @@ static struct ctl_table nfs4_cb_sysctls[ .data = &nfs_idmap_cache_timeout, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec_jiffies, + .proc_handler = proc_dointvec, }, { } };