Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp967887rwe; Fri, 14 Apr 2023 12:09:58 -0700 (PDT) X-Google-Smtp-Source: AKy350by0B/M0cp1fdIqMlQsP7I693jlB8vL0ytf48oeiDE/fu1gHD19Wovk464WKyfN7x8PZdjm X-Received: by 2002:a05:6a20:6994:b0:ee:6262:75fb with SMTP id t20-20020a056a20699400b000ee626275fbmr2901502pzk.6.1681499398136; Fri, 14 Apr 2023 12:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681499398; cv=none; d=google.com; s=arc-20160816; b=vcver5/c+3DcSZ0SaGF1s3IhyKdXKzKZrs7ZVHudA8qO2RXKu/cY9Ji0FiPBTLw180 0+jbSFNww1KkgWiNEYZPxqTZEsZBhHHfq/x0OazgjYdMt+hhjuALieyQYTUvbgfCEIdY gKzZC4YlJkWvZuYGnZaaFIbbRy/TXfQrCYSqhtzL7Wu7MII8B1IEY7gH23KBEwgRf1S7 LcCSE88mHHiAIEwbZLfO5hUDu7FWcOoKSH4snc2BeZ0Z6eaZTallM+9F1d/+0U8Hx/PM OS71tlCmo20q+fN72NFXl/1Zc6i8/t3j9Lvh9fmyt1IJa88QycphASQQhkY8EGOLd/k4 1ofQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZDjTR4W4QJJ8lrexEDMtF9xBKiiiN6ss3zxDd4U1Dc0=; b=SOD1gErVTwsFm0hpcH1RAFrSxI6UFl1b8w2p+RxFhULO5NNe8QtxeVpnyXfqT5i7hl /OIWtv308vl10TcLcYY/ITcHGrtTH32K/d2k7F3jCPTGX74gIgri7vvsKziinLEjcbD4 rmAcdGqdgEsJG7wRTAqW0binOgri4ASTWyWo+EOg8PT6KVwi1ozdmFqZ5bsifH2Xr7LX F8bv8mOe3umUokCTs8LTGOOgO2uRnS/bEQftHQoVVNjfuOdMoY6WbM3iEGePeDzZeEg5 iEKtx3LnfvhzQTVXln78wrmPzA6bX1FxqrCJQsyAzk+Gl4lr6kY+MI+3vKE3HLwFkmkb ahUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jKZ1TW6D; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y72-20020a638a4b000000b0051b7f3f862esi1162238pgd.824.2023.04.14.12.09.45; Fri, 14 Apr 2023 12:09:58 -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=@redhat.com header.s=mimecast20190719 header.b=jKZ1TW6D; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjDNTB4 (ORCPT + 99 others); Fri, 14 Apr 2023 15:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjDNTBz (ORCPT ); Fri, 14 Apr 2023 15:01:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B1B9ED5 for ; Fri, 14 Apr 2023 12:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681498868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZDjTR4W4QJJ8lrexEDMtF9xBKiiiN6ss3zxDd4U1Dc0=; b=jKZ1TW6De0IgjAQQNm4xDOXZRNE5cUWV5Ck/yFOwQYS/nznmbDs+wZaz/OyYzKBQL+iY+w JnhMo1WRXoweFVo8Xeq16M0u04RwFTnrWp6AX0lUIToQ8mdZA5mejoPQhf66ZtVSLif+qs Q3/sH2VWCdOxsVTzHrMKWoTEWEXJG2k= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-82-fCzJ1CmvMEm-8Ukfj5p4rw-1; Fri, 14 Apr 2023 15:01:05 -0400 X-MC-Unique: fCzJ1CmvMEm-8Ukfj5p4rw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D7B391C0898E; Fri, 14 Apr 2023 19:01:04 +0000 (UTC) Received: from [172.16.193.1] (ovpn-0-3.rdu2.redhat.com [10.22.0.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25736C16028; Fri, 14 Apr 2023 19:01:02 +0000 (UTC) From: Benjamin Coddington To: Trond Myklebust Cc: Alexander Viro , Christian Brauner , Jeffrey Layton , Neil Brown , Dave Wysochanski , linux-fsdevel , linux-nfs , David Howells , Christoph Hellwig Subject: Re: allowing for a completely cached umount(2) pathwalk Date: Fri, 14 Apr 2023 15:01:01 -0400 Message-ID: <6F3DB6E1-F104-492B-9AF1-5AEC8C27D267@redhat.com> In-Reply-To: References: <95ee689c76bf034fa2fe9fade0bccdb311f3a04f.camel@kernel.org> <168142566371.24821.15867603327393356000@noble.neil.brown.name> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 14 Apr 2023, at 12:41, Trond Myklebust wrote: > > I mean both cases. Doing a lazy umount with a hard mounted filesystem i= s a risk sport: if the server does become permanently borked, you can fil= l up your page cache with stuff that can=E2=80=99t be evicted. Most users= don=E2=80=99t realise this, so they get confused when it happens (partic= ularly 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 p= ath to destruction. >> >> Note, BTW, that hard vs. soft is a property of fs instance; if you hav= e >> 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, T= BH=E2=80=A6 > > > The main use case is for when the server is permanently down, so normal= ly it shouldn=E2=80=99t be a problem with flipping the mode on all instan= ces. 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=E2= =80=99s doable at the RPC level. All we would really need is the ability = to store a per-vfsmount flag. =2E. maybe vfsmount's mnt_root d_fsdata? Ben