Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1774604lqg; Mon, 4 Mar 2024 03:31:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWq6/fXf4mF7fDufEt8wRg8f5QGFiyx1lc5fTAVY/6w1jpuW9KQS/YF2PZf+48C9nZHnMUAMw6MPKiEZk9Pzd+4Cntu+RFWTxbh/2AvoA== X-Google-Smtp-Source: AGHT+IEJVhML19eX3IZyTbp/L1kKWpscWzi0XzGXwf1hoBcvMCRtsbPiV//xYaNyzhHRb2L/SDBr X-Received: by 2002:a05:6a00:2188:b0:6e5:5c83:c459 with SMTP id h8-20020a056a00218800b006e55c83c459mr8281164pfi.29.1709551917598; Mon, 04 Mar 2024 03:31:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709551917; cv=pass; d=google.com; s=arc-20160816; b=azUQNIm3aDfMD1EXSu4nBLzoUUqh5EVyGQ9fa4myTuUhOuLvqOkyWY0gQEgdQFOtw9 AtukYwgb0FUGY+9LjPsciDz+p0nXD/3NhX4sciEDXIuL8LlavJLh8fxuyyL9tqv5+Db8 tm5eL5+ykg+ghkLMKH3Ui/WfXGZKUYd4Zx1hl5TXbCuH+4Q+LzwYKFYFU+3ZBq+16bbm UYsGgE+Ti4kr1V89bPnyjOuuCHk/CKAuPJ72PbcBk/Buze2b5pU4qWwReV4gqfHoENno v41vxEpjBE8Iuf44M2qeAEdhJhUlxQjvqUhc0uNttDk9RGby1CMznQtDIUneVh6hmpK0 0vIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=7cwuIreNEe1jP44N5/XfaiRVQE4xBKtKr6yMh8oyKL4=; fh=tRHL7KDUxkeAYT3bktT0ZdUDZA5+kJ85amfhn6iQm1g=; b=Ge1oWm8wdQ/m3rWpVSx7q+N/cijkQ626MQ+4Rp99aEslGt8CDwRIbbusf0EYGB1mPt +lJDuROpGVuToY3ov2csiczckoO3O46Nu3AJVNQC7ns6TypTe+/PNCpZWm62xQFo0gbo RYqVa4u4AYxcZ0ziHhlQgvJSrtIWgKMrzHc+TA/1yGDaZVDbjbat6ZP08Q/SB18V0pup 0a8RDZ6ZV/a3xQGliZyt+/wlc8WBBHrQ2KsRlEjH3HS2Hg3DOPlyASrMdnqWZM/NcRVi Dqcl7CEka9mMc8TsOCup8BX2MQTrk+45WJ77/cf0txxUBzG6y2Ke7PAcdcpI/j4Sftav nr5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=g6tD9HU7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=L4eM4PLs; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-nfs+bounces-2158-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g12-20020a056a0023cc00b006e57a16d5ebsi8538968pfc.303.2024.03.04.03.31.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:31:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2158-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=g6tD9HU7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=L4eM4PLs; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-nfs+bounces-2158-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F69928145A for ; Mon, 4 Mar 2024 11:31:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8EC63839F; Mon, 4 Mar 2024 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="g6tD9HU7"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="L4eM4PLs" X-Original-To: linux-nfs@vger.kernel.org Received: from wfout1-smtp.messagingengine.com (wfout1-smtp.messagingengine.com [64.147.123.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FCB51B965; Mon, 4 Mar 2024 11:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709551912; cv=none; b=XNqDpLobyFYUMsrlCRkvAs8J8XosX1prM/x8ipzNmiOxP37rmBLiJVIZ4NZE+7tBxfudMCsYFNkIfuNlzUobe7CKMmf75pIyB4mInXSDwQUQcdDvG2GRpyOuUMi1FDsBjKZ41asEcZhVwbg3gfdpd9S+GAnOd9oGjFfkXt+O7GQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709551912; c=relaxed/simple; bh=pY9uumxUtVhBDuv041CmNCDushgWROjcB0JIuhgLfRI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qu8wcbp1qnG/TvbstPQeYyzMJsEWhhDRIh9SR4//gScAWMPke0YCRcgLBAqea5dAyR2uF13mNWeZSCx2RSgKn0p3LsxR0AA+fNOayuy2rSpUvPcJ1Ij4N7z4PvRXv3YyclaZI4/yPijbicjAaJlnB/lx2Gq+92qC74opZ2WPYbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=g6tD9HU7; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=L4eM4PLs; arc=none smtp.client-ip=64.147.123.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 47FD31C00098; Mon, 4 Mar 2024 06:31:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 04 Mar 2024 06:31:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1709551908; x=1709638308; bh=7cwuIreNEe 1jP44N5/XfaiRVQE4xBKtKr6yMh8oyKL4=; b=g6tD9HU7Wh3BfjdWFeILfocYXk djy21IxU5l4Dx3NZQrLytkCgXmYHNnm9Hc2vCLp3MsAxC/AfjAYWqK3p6Huqa3S5 InLhl6m/JO0QDBGMZzFJOuRqlGdGl6FqM3MzMsX6ucu+0SxVB1EoxLrwTcYQ7Ntw x7FjSW2SidCwf1bIJRKJcE+Fcm1US6o43Q5ZyztD88XEp4hU6+eYTp+tpqJ6bAbp IztIzOaKMBbqzcNhE+auNtbWed3+Aq7vNjX34RZ7gXXtOZRuF3lhQA5PFEC1ZtKg WD1brC1vjv+WVupuwXlZCFeGxB/jpV+pt7JTZkwmS39OJwY4Pzp5nbm23VVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709551908; x=1709638308; bh=7cwuIreNEe1jP44N5/XfaiRVQE4x BKtKr6yMh8oyKL4=; b=L4eM4PLsgesXQ00hOo4YyIDBsBczM3QgGpqFRV98Vsv+ JP3g9uxu3TIeAq1EFOcFwAZQUNR0ESHJ0mgHFDsm95O+vkyLyUbFue5zakxsPB8h 84HxYdK0OqwAwUN9xRVPxGA/+z7UXdCnaJb0b4Koj+E/Z8+cCyOtK+jHmmPkcqnu gs6jm9SaWB5Fl1d1jhkUwmnEmFf5w/+iNSUrM77DDYmTUrEl+EWdnY2UPDzwJtr3 v8cr0LoyTJTOYopd+VkdN76vz3C89eeYR7G8jEisjTr8NP7flUYhm60ULuE3yUoV VGXjpk9Kd/GnqJ0qL0k/OhWmIo+WFHNxBLNeOxkCkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheejgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeehgedvve dvleejuefgtdduudfhkeeltdeihfevjeekjeeuhfdtueefhffgheekteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Mar 2024 06:31:47 -0500 (EST) Date: Mon, 4 Mar 2024 12:31:45 +0100 From: Greg KH To: NeilBrown Cc: stable@vger.kernel.org, Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, Jacek Tomaka Subject: Re: [PATCH stable 6.1] NFS: Fix data corruption caused by congestion. Message-ID: <2024030439-exclusion-tanning-b1d9@gregkh> References: <170907634991.24797.14120500624611379941@noble.neil.brown.name> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <170907634991.24797.14120500624611379941@noble.neil.brown.name> On Wed, Feb 28, 2024 at 10:25:49AM +1100, NeilBrown wrote: > > when AOP_WRITEPAGE_ACTIVATE is returned (as NFS does when it detects > congestion) it is important that the page is redirtied. > nfs_writepage_locked() doesn't do this, so files can become corrupted as > writes can be lost. > > Note that this is not needed in v6.8 as AOP_WRITEPAGE_ACTIVATE cannot be > returned. It is needed for kernels v5.18..v6.7. From 6.3 onward the patch > is different as it needs to mention "folio", not "page". > > Reported-and-tested-by: Jacek Tomaka > Fixes: 6df25e58532b ("nfs: remove reliance on bdi congestion") > Signed-off-by: NeilBrown > --- > fs/nfs/write.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) All now queued up, thanks. greg k-h