Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 5B2BC15486 for ; Wed, 25 Oct 2023 14:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="e4mR/qwX" Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 672F71AD; Wed, 25 Oct 2023 07:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=0YPa27INOC/N6qFWunK8b2Eoihh6tg8Tw/h1N8ujj4k=; b=e4mR/qwXL0HvoqDl3cYm8CxH26 lVxa1WXl8CX5DSEaRG1++Fx3BahQbLCd5oF1jDTQWen90bRt5kTM/QL6Ds7fYMuCfL6kcVfqgPrl6 mwZ/TBr4foZGzth1m10/v+sR2dvWZbJM9lHuSXaWQkR7QmFF6q7D4al59+kbg8nFXQp51bwOg1QsL gY6sfwkOXQt5mgrb+REtBuGG4nv2+cJ8FgVLSY24Q7FtXlRuN8LPwCzdOQV6WywoGk16BClk6rh3S LOAR5zSp6QbsEcD9+Kp58U2Wj961CkSDnszUYD8lsc0GjyVUg+c5dmV+ybllu/lchxSDQcrqi0AhJ X83a1C3Q==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qveac-00CTwB-34; Wed, 25 Oct 2023 14:10:31 +0000 From: Christoph Hellwig To: Jens Axboe , Matthew Wilcox Cc: Ilya Dryomov , Andrew Morton , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org Subject: add and use a per-mapping stable writes flag v2 Date: Wed, 25 Oct 2023 16:10:16 +0200 Message-Id: <20231025141020.192413-1-hch@lst.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Hi all A while ago Ilya pointer out that since commit 1cb039f3dc16 ("bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag"), the stable write flag on the queue wasn't used for writes to the block devices nodes any more, and willy suggested fixing this by adding a stable write flags on each address_space. This series implements this fix, and also fixes the stable write flag when the XFS RT device requires it, but the main device doesn't (which is probably more a theoretical than a practical problem). Changes since v1: - add a xfs cleanup patch Diffstat: block/bdev.c | 2 ++ fs/inode.c | 2 ++ fs/xfs/xfs_inode.h | 8 ++++++++ fs/xfs/xfs_ioctl.c | 30 ++++++++++++++++++++---------- fs/xfs/xfs_iops.c | 7 +++++++ include/linux/pagemap.h | 17 +++++++++++++++++ mm/page-writeback.c | 2 +- 7 files changed, 57 insertions(+), 11 deletions(-)