Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4767530pxv; Tue, 27 Jul 2021 16:16:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlRu8osr277mY7u0k/78J6Gqi9nHwBt+Jc73jKCSi3bGJmpFJqmE2J3xE8gjia21KxtKq4 X-Received: by 2002:a5d:8996:: with SMTP id m22mr20399574iol.6.1627427767128; Tue, 27 Jul 2021 16:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627427767; cv=none; d=google.com; s=arc-20160816; b=jWF6c0soD/RrVTOVFJNrsLJPZocQeYnNvh4cka5Vcz911L0r+1mdGP1PI1XVZu7AtR UFrnWqbgloONhkbWuw+XXH02R7cHe2wAmFTdih8qf5Xu90/5/poL8kRhCbe2bRq1h9Pf EFQotc+qoEJS2leMqOE6oTkh0dFGjradRibqEsH/R9d8BdSnUKbtrvG5Yz4LJu/yaa86 E8EPcm44ytJ5Y994ZxlDYDeTsn1uRCwGc4AIepHDNKaOlyrdeEwm9A4PvRpIkEXda0nD RQ94wrQyafV8pxjsS7npHSr5IYwW+YkW1PHSFDUGKqlX4SVSvllq61GQGGxPww74vCcn sIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:mime-version :content-transfer-encoding:dkim-signature:dkim-signature; bh=xOgxaBxb3YxZ42LEq8uL0daRSF34LXkNtTtD8Dix0PA=; b=S6F6HiRGRAjAUhGklwpQ4JrOJfdmvk6eA51PhwkN6GgptCMimLs97CkD/HO28K8FJh 8GMzrJAQ/Vox2CxNOBw+BilfMn5kfhhF/KJPdEeUW3omJNQh1pJS1Pm5jPdxYXSfgSZd 3hFKVoGbbQpAUmVK9ES4lNJdu/Q4AZby63kSy9FHSqySgxHWf7fgSCwVXwJ9J4lzsUsE fNiAlaojHGE9uFqqufVyX1DKSZi/OTpfy6lKbhH0p0LENqD4BSYvEXpl1sS7rZuE6NdD SlXN+jctIHfpTsOSUYmC6W6YfBuJJdeD9LMBdRrJzKQjGKSYpPYYq6gO/riyaxqM+Qk4 7WFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VJr3deVD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=yeGvvHbU; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si4981600ile.62.2021.07.27.16.15.39; Tue, 27 Jul 2021 16:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VJr3deVD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=yeGvvHbU; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232750AbhG0XPh (ORCPT + 99 others); Tue, 27 Jul 2021 19:15:37 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59966 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232314AbhG0XPh (ORCPT ); Tue, 27 Jul 2021 19:15:37 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E41EC2227C; Tue, 27 Jul 2021 23:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627427735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xOgxaBxb3YxZ42LEq8uL0daRSF34LXkNtTtD8Dix0PA=; b=VJr3deVDrt3B7pbZT1vdiF4+LLvd8FAu/SA3UUXxGBsUJ9LLiOKHMvvljfywZC2QRLkAKl 2OSZ+nC7utPUNAiyg6KYp3YEtZgTa0lu2iFtvvsBJGi6ArbkjyG6f8b6TzKA6SfuNA9rFS UVEYva70UPAo1icbtWoicJAwjRAijJo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627427735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xOgxaBxb3YxZ42LEq8uL0daRSF34LXkNtTtD8Dix0PA=; b=yeGvvHbUBh8LgRSsMj2zj4FIyX7Mqfs1ltLq2YcYbspv6QTHJ7WzVafaazz7fKfEeaw7OJ jxnA5YNRv21JSfDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D2C1013B91; Tue, 27 Jul 2021 23:15:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4BjzI5aTAGEAXQAAMHmgww (envelope-from ); Tue, 27 Jul 2021 23:15:34 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH] NFS: fix minor issues with automount expiry. Date: Wed, 28 Jul 2021 09:15:31 +1000 Message-id: <162742773175.21659.17666555162574585184@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 1/ If automount expiry timeout is set to zero, new mounts are not added to the list. If the timeout is then changed, those previously mounts will still not be timed out. This is probably not what would be expected. Simply refusing to start the timer is sufficient to prevent timeout. 2/ the MODULE_PARM_DESC for nfs_mountpoint_expiry_timeout is missing a space between to two sentences. This is hidden by the fact that the string is broken onto to line - against current policy. So join onto a single (long) line, and add the space. Signed-off-by: NeilBrown --- fs/nfs/namespace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index bc0c698f3350..be5e77a80811 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c @@ -196,10 +196,10 @@ struct vfsmount *nfs_d_automount(struct path *path) goto out_fc; =20 mntget(mnt); /* prevent immediate expiration */ + mnt_set_expiry(mnt, &nfs_automount_list); if (timeout <=3D 0) goto out_fc; =20 - mnt_set_expiry(mnt, &nfs_automount_list); schedule_delayed_work(&nfs_automount_task, timeout); =20 out_fc: @@ -366,5 +366,4 @@ static const struct kernel_param_ops param_ops_nfs_timeou= t =3D { =20 module_param(nfs_mountpoint_expiry_timeout, nfs_timeout, 0644); MODULE_PARM_DESC(nfs_mountpoint_expiry_timeout, - "Set the NFS automounted mountpoint timeout value (seconds)." - "Values <=3D 0 turn expiration off."); + "Set the NFS automounted mountpoint timeout value (seconds). Values <=3D 0= turn expiration off."); --=20 2.32.0