Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3264480pxb; Fri, 12 Feb 2021 13:42:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwD7fRKBXtXZEEJGVUIUfp5ceO4dlIMc4XOjtrJR2Zduij7B3ll1SmL1SJd/XU4dG265WgY X-Received: by 2002:a17:906:73c2:: with SMTP id n2mr5002234ejl.224.1613166170240; Fri, 12 Feb 2021 13:42:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613166170; cv=none; d=google.com; s=arc-20160816; b=qI3aKQGttZ05IXbIAUoo2GqUHN26ZQ3/kCsSlm9KVmFuTSPwjGCRsNk1ffnyAHDxkQ S+EeGL8E+2Apf61ZR9ONBdjVBw1QAdT2jvuDG8E9SmpZCIq28bzMbVdC+QPG/xks+96M I/JCacN3u/jlrEkX1JEMy+lkk7OE+VRa4D1WiP35YZOxUfcAeDsYwTXyLHkWVJiSF4Tj phUFY/tZDUeDySXeD4e2qn/GoqBbTfcG2XJsVY3TGsgVFohoHgWOteEI2Q1kfNFd9D/I vPRRMzltlkLVVkoyJ3d6H0gnDo4GpkZAQs5akjkhmJrL8fQwhd4d4xrqq2IMoQhPo5iE 3TjQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6tUzMOELLrM1pM0jHqrK+zalwJeBEApMvRd8WcFuesY=; b=BkW7eJUhp0lKYuBMZr20E07fqT81B5wJH2rh6rsY6AIt9sW131KbLWFDyshwleyjSP Frjo0XwyItR52dE3FriktbVGDf7xfD14RpLiFj3pBLPaOXI7mDWViOOc/WTiO/l5WqYq P/gFvq9+PAhvyFjPWbjUe6Kf52jekXAJToCXvO0zA13kmsb58tm8Axpx1r/iRKwNa4zV uNO0LV8qmW/Zc+sSbW4AmUl63Psh0y1OE1PZBzrHLngnoP9WO138mfnzNlWm/LFGANLu 9jf9nlJUhJkO+scN0ICJKiQjdsK9OjOaSQT6nkE5b/QtIl8IfUX9lHJRP+gi5Lp4vi1x WJtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YsRbyACK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si7663382edl.298.2021.02.12.13.42.27; Fri, 12 Feb 2021 13:42:50 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=YsRbyACK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbhBLVmC (ORCPT + 99 others); Fri, 12 Feb 2021 16:42:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:34994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhBLVmC (ORCPT ); Fri, 12 Feb 2021 16:42:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 274CC64DD5; Fri, 12 Feb 2021 21:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613166080; bh=lF6P2LGF13VGwr96xp+tqAYISWF1N6loAv6+GCDjd9c=; h=From:To:Cc:Subject:Date:From; b=YsRbyACKezUXWmZOeH1urdelfqVjw+m3Zvy4GvHl0Cs3ZZOFKmnVcQtJBXbSnJh9q yy/dutm7+94UvpcmfZGMAWgHKZdnVrZzkPQ/8kcF0PtVgfYg4HyeCiEw6Mad6oFR52 Fg15wukluRSCrBZ4v17SVb51AoOvQJCRJZaB0FpJIPH8AcVxnLY/V2B0zeV3gqR9Gm RhqrYdWd382LckwEwJDdWC1fiNB1IzCuIQwhVIDNougBfx4qE7mj4Lz4GIghzdkGpH 9Af2nr9UB5JpVWDbztDoGZKrZbda4NtAbihXPTFILNPOjineU5HcD4UtmG8DDyTMVh gsgJQ669v2XEQ== From: trondmy@kernel.org To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH] NFS: Set the stable writes flag when initialising the super block Date: Fri, 12 Feb 2021 16:41:19 -0500 Message-Id: <20210212214119.4234-1-trondmy@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust We need to wait for outstanding writes on the page to complete before we can update it. Signed-off-by: Trond Myklebust --- fs/nfs/fs_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index b6be02aa79f0..971a9251c1d9 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -1512,6 +1512,8 @@ static int nfs_init_fs_context(struct fs_context *fc) ctx->selected_flavor = RPC_AUTH_MAXFLAVOR; ctx->minorversion = 0; ctx->need_mount = true; + + fc->s_iflags |= SB_I_STABLE_WRITES; } fc->fs_private = ctx; fc->ops = &nfs_fs_context_ops; -- 2.29.2