Received: by 10.192.165.148 with SMTP id m20csp525828imm; Wed, 25 Apr 2018 03:40:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx48AnKtgqdXJw4fJYup7/rSPyXwS9zXORWWDexuBgmEpR+Pw6ViIBWnJODtBnMlyTfJrKgCF X-Received: by 10.99.45.2 with SMTP id t2mr23145485pgt.356.1524652839272; Wed, 25 Apr 2018 03:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524652839; cv=none; d=google.com; s=arc-20160816; b=bHayb0iacxvvDg+cjwZMk4mqjdR9XeRNR8+jXGSO/35xejahIk77RSvyfR9xDuSnsz yRUENjuhT5XODDiMiRZULE2OmfkOXKWZ5oxgbsiM8E0fu4R18Ffe1o5wZ+Z7mXoXv15N gx/m/deKl4ERalY3JwY7aNGMN/gKzihD4IAuHl2q7thPmKkZ0XTnXRhCpJBXnNrI1g4b niTANQIo5eLmeNZaAJRkiXMvV80seb9XxAdCYIAMQwv+4EnY3Pk4i6WpwmoVCwTStNm4 73A4TPDuzmE1+A40Fak466ML12Kusg9+ECbfGlNBamqHaUElxj6wPiOma6FkfI3dfXCr Xb4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=liZQmUBJXuczseUeMXg4T6EtSA0oSyz6HwIWO1HITOs=; b=ZtlrW2eAtHBOM/GbRs9+PT1KgaWx6tWy8sIElThheclwzybKz/BjT2GiUlwjqYs31E fj1lI771LZGeIS/ZtI6uzyTXGbRaZHcqL7n1OnwylV/Vdx1++0YTpbgasYRBvtsClnZ6 K+h9bD+APrc16JVqqqOi5tbPQc7bhcLmGPK0kVywihhpW/6B4mmGKvJSc4rv9jwaQ3HJ k+dgrqGbPwUsdMcpZ7IPNdR/DwxRa4AHhSijBIKWS1uJEg3x8WmKdjLIGuLs0ESXgvxp jRn7n6x0lAScMOAUlUFq2Jf/iCLTXuxM5UoE1nJ1yrztwbVgIrMwFmCTWmjyio4Itk81 582Q== 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 d16-v6si4600859pli.176.2018.04.25.03.40.25; Wed, 25 Apr 2018 03:40:39 -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 S1753570AbeDYKjO (ORCPT + 99 others); Wed, 25 Apr 2018 06:39:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51776 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753126AbeDYKjH (ORCPT ); Wed, 25 Apr 2018 06:39:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9430A36; Wed, 25 Apr 2018 10:39:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Chochol , Trond Myklebust , Sasha Levin Subject: [PATCH 4.14 054/183] nfs: Do not convert nfs_idmap_cache_timeout to jiffies Date: Wed, 25 Apr 2018 12:34:34 +0200 Message-Id: <20180425103244.718591963@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- fs/nfs/nfs4sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/nfs4sysctl.c +++ b/fs/nfs/nfs4sysctl.c @@ -32,7 +32,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, }, { } };