Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3665729rwe; Mon, 17 Apr 2023 01:23:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Y80FjVNGQuYNarjA1J2N1MRYW5K0jGCwFXYjI5XwyzYWC8OXZ+5y5S/kWdWaQzHjwTcp6V X-Received: by 2002:a17:902:c78b:b0:1a0:53f3:3761 with SMTP id w11-20020a170902c78b00b001a053f33761mr10849170pla.15.1681719824513; Mon, 17 Apr 2023 01:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681719824; cv=none; d=google.com; s=arc-20160816; b=ZM2U37jCatWNX0TFSynCAVmoQiAgizCfe7n0HB2k6uRkyfiRbf47wytmOZgDovH2PS /X3OuVMdb7hyRrjh9+XCBetyAZC2Hj1Z64HCnm9x9/lyzQ/2Wu5CPYqpVVmptiJhFLfn bmahN0X6OsoVXcLBrVqJytv5zazcRpqrBJMlMTobku5cQ02MKuEIrIxLnroQcq8O9xos WLhyuL8qBfRH7tjt2F0G6mhuQYblt8HA6N7HR7Q5dR5HG4TXhSrDt4lFNnHVi8gp8+sU p4aGMR+2/SdQcB0nnNEiRlESWBtIBRpS4mHUBuwobZHj2g4cjLxeDlLKSgbewzRScsnW +JOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=42NspJB89Kl0n0KDWN550tcAF+Y7yc8I4mJ71+oGW3k=; b=Vi7XqUoqrDKThjHUYY/DLqyIOUhN1j+Ib+jTpDJSQdP/suV1q8DzfakbhHg54/o3jw unnZAhVugE5V9Gs3DyWg6ccYETCISWyvQG+RXdCwqEiAOi1h8xfqlKZUT5McgKnmLnlN CQOLfopFLfdryddrgcSrjMuMTMMPlHD2SEMR467R4XCQZl89JP3Xthls2btIDGXNgetd mybQLVnQtptv4xiQTLJz3rYyR//jDT/81SaNmomOjdA9DR1F9VY28Un2NZoR7mDe6rfB aqRlg4aSkxrmqvFFlF/pdZ4cgaNJTjAjLlNtmSB+fQ6Xq70itjZTkhqPlXvh4RF8Vq/x FJNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tdTbC/T5"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902dad000b001a6cf82259fsi3304978plx.429.2023.04.17.01.23.23; Mon, 17 Apr 2023 01:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tdTbC/T5"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbjDQIW3 (ORCPT + 99 others); Mon, 17 Apr 2023 04:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjDQIWR (ORCPT ); Mon, 17 Apr 2023 04:22:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D889198B; Mon, 17 Apr 2023 01:22:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39DF262000; Mon, 17 Apr 2023 08:22:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EC1AC433EF; Mon, 17 Apr 2023 08:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681719733; bh=MIG8Wmkr3JxNCkp7vK6igu8UUGrt17VNwrJGqRM2cyw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tdTbC/T5GadLou6Ias/lEIjL8gz3DcneQQK0tHfCCvZ3IVLeOOhgDxF3w6pxtfoK9 2GaXcPVp8U7SvxikBXiexyx63Hfha9cMs4OGGnyOmkF3572cZgdSd5hXf4sthe7RjL GFMIJtAMOGrzEs+VJ0GpkuVNj2i7k+SbHD/4NZ4oQTdzmvqFsjJN2gVQ3COEhDa4Bn XXv7XrGgOjVF9u2SwtA6WckCUOC6+XJc6Gt/0l4HNruvaxF2FeDkP0yl0PqPACzCgt sTq6GyfD2bIcl8bJO6KgSF9lvPIQwDA6eioV9OkgKeYMy8PHnXziTV4XIUh8ihZg1T TYtSoKFd5QawA== Date: Mon, 17 Apr 2023 10:22:07 +0200 From: Christian Brauner To: Benjamin Coddington Cc: Trond Myklebust , Alexander Viro , Jeffrey Layton , Neil Brown , Dave Wysochanski , linux-fsdevel , linux-nfs , David Howells , Christoph Hellwig Subject: Re: allowing for a completely cached umount(2) pathwalk Message-ID: <20230417-schmecken-gurken-d477ec6d3331@brauner> References: <20230414024312.GF3390869@ZenIV> <2631cb9c05087ddd917679b7cebc58cb42cd2de6.camel@kernel.org> <20230414-sowas-unmittelbar-67fdae9ca5cd@brauner> <9192A185-03BF-4062-B12F-E7EF52578014@hammerspace.com> <20230414-leiht-lektion-18f5a7a38306@brauner> <91D4AC04-A016-48A9-8E3A-BBB6C38E8C4B@hammerspace.com> <4F4F5C98-AA06-40FB-AE51-79E860CD1D76@hammerspace.com> <20230414162253.GL3390869@ZenIV> <6F3DB6E1-F104-492B-9AF1-5AEC8C27D267@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6F3DB6E1-F104-492B-9AF1-5AEC8C27D267@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Apr 14, 2023 at 03:01:01PM -0400, Benjamin Coddington wrote: > On 14 Apr 2023, at 12:41, Trond Myklebust wrote: > > > > I mean both cases. Doing a lazy umount with a hard mounted filesystem is a risk sport: if the server does become permanently borked, you can fill up your page cache with stuff that can’t be evicted. Most users don’t realise this, so they get confused when it happens (particularly since the filesystem is out-of-sight and hence out-of-mind). > > I've been pecking away at a sysfs knob for this case. Seemed a clearer path to destruction. > > >> > >> Note, BTW, that hard vs. soft is a property of fs instance; if you have > >> it present elsewhere in the mount tree, flipping it would affect all > >> such places. I don't see any good way to make it a per-mount thing, TBH… > > > > > > The main use case is for when the server is permanently down, so normally it shouldn’t be a problem with flipping the mode on all instances. > > Is there another case? Because, if so.. > > > That said, it might be nice to make it per-mountpoint at some time. > > We do have the ability to declare individual RPC calls to time out, > > so it’s doable at the RPC level. All we would really need is the > > ability to store a per-vfsmount flag. I would very much like to avoid having filesystem specific data in struct vfsmount. That sounds like a maintenance nightmare going forward. Mount structures should remain pure vfs constructs that only carry generic properties imho. > > .. maybe vfsmount's mnt_root d_fsdata? I don't think that would work without having access to the vfsmount.