From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E2ADC2BA19 for ; Wed, 15 Apr 2020 12:14:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6BA3B20737 for ; Wed, 15 Apr 2020 12:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586952880; bh=sqR44rkKRndArbx5WVO6OfSPnYaxS53j2raSE63bXUA=; h=From:To:Cc:Subject:Date:List-ID:From; b=Z/cRTrgwjcwO2Sy4QpG/HlxwzxefWTCqicMeIhrpR+zmvsH1saFLPzHHkWcistLvy uXsEfcLtC9LVr8T3TGMh3B1uJPr1P0FkVz4x0GscMogTAd4PnNNCnmpaRiPmYdzchv GOOhqHt1VE7yN5SbE1/OzSyzH7/DJJytiMC6TJ/I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898144AbgDOMOh (ORCPT ); Wed, 15 Apr 2020 08:14:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898108AbgDOMNC (ORCPT ); Wed, 15 Apr 2020 08:13:02 -0400 Received: from tleilax.com (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84C7420737; Wed, 15 Apr 2020 12:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586952782; bh=sqR44rkKRndArbx5WVO6OfSPnYaxS53j2raSE63bXUA=; h=From:To:Cc:Subject:Date:From; b=0sYsiYDVIV54P98SHBVm1ITyVkBa8qArzDth5PguYIZFk6IqGuE6KED3O+veY4yUm 9h3bsGoNugcrnUcc+D+EMFFcv+jy4tn9Pxvolq0e3X+dUZZckEiZGmsUIcw0vk10o1 m9dYgxrX5B7pW5p7mchuSuTGDxKRf5SAYRzgVFNk= From: Jeff Layton To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, andres@anarazel.de, willy@infradead.org, dhowells@redhat.com, hch@infradead.org, jack@suse.cz, akpm@linux-foundation.org, david@fromorbit.com Subject: [PATCH v5 0/2] vfs: have syncfs() return error when there are writeback errors Date: Wed, 15 Apr 2020 08:12:58 -0400 Message-Id: <20200415121300.228017-1-jlayton@kernel.org> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v5: - use RCU to ensure that bd_super doesn't go away while we're using it This is the fifth iteration of this patchset. The main difference from v4 is that this one uses RCU to ensure validity of the bd_super pointer when we're marking it after a buffer_head writeback error. Jeff Layton (2): vfs: track per-sb writeback errors and report them to syncfs buffer: record blockdev write errors in super_block that it backs drivers/dax/device.c | 1 + fs/buffer.c | 7 +++++++ fs/file_table.c | 1 + fs/open.c | 3 +-- fs/sync.c | 6 ++++-- include/linux/fs.h | 16 ++++++++++++++++ include/linux/pagemap.h | 5 ++++- 7 files changed, 34 insertions(+), 5 deletions(-) -- 2.25.2