Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp467779ybh; Wed, 22 Jul 2020 05:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHGNm99Nn1QMTJ4TkOPvcZZljNuR2qqrjwEuhPI9WI8LR5hqSBL3WQ1N8LbHlC1RxD3mSO X-Received: by 2002:a05:6402:31b4:: with SMTP id dj20mr23726339edb.158.1595420459349; Wed, 22 Jul 2020 05:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595420459; cv=none; d=google.com; s=arc-20160816; b=Uaz3d4nKh5MjYEnGcwAcEseyh4ET5VTRzStwS1BHKBmobYPnE3L6lnQACsbkuwZhxC Cul8tKdSZhfiKr8KjfeTc4gMOAWfrHdm66RtwZa+nvy3ocy68cbg3ay3/qMio2KDH7AU HmWPuJeMEEg/Czkz+qHm4xz8CumEzDEJBAjXQPBbWlIjCnj9WLBbqaNscjyIMVe7aUOy 5vhsTXNMR5hJ1x/Qvn/eQgzgersQLwqVjS/I+fA21Ay3BxMz0pVnSoIQow9ue4BH3KY8 KhsP+QmEHMeKjPlvWEBfBoh7C0JIaBZ1dcb2E2apZ1/y4yw7w86VtDIXv6KdGJstHpPO vznA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=vCtk9GnBiOAqU3k+W1SQe7KIu+zVdj7N1c33spXO6As=; b=W/Tuiujnr8btnBOhu4ZasQ+NQg0v3lajcSTYHtnpDZLneemiHxqZ93u1TGDFFxxUiN W8YLAsA/48gMKZrx01t05t5J7ojopp7o9YnEpGtie8+x+muDHEvF8YlvQpYiDxknSe3r gxipCd3nkxW+1Pv6fo8OHEdi0FgQ3EVobCtlV2RhsOrbHdsI09v/LeXvDoxibj2WvidM eo0cPmlWbU+Cj6a2CkKWShCSlgvxL/krjcid7WFe39ZjSzFuqnOLj5UU+P/hLTD35rAr XUJABUSSeBw0zGJqvrXn2JgdEhkwmmv05u3FF3bqgk8mI6BqdYGVgjepB0tG8fyiJaAD N0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NLOKRJDi; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si13717161ejg.550.2020.07.22.05.20.11; Wed, 22 Jul 2020 05:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@redhat.com header.s=mimecast20190719 header.b=NLOKRJDi; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S1729628AbgGVMUG (ORCPT + 99 others); Wed, 22 Jul 2020 08:20:06 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:33366 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726841AbgGVMUG (ORCPT ); Wed, 22 Jul 2020 08:20:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595420404; 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=vCtk9GnBiOAqU3k+W1SQe7KIu+zVdj7N1c33spXO6As=; b=NLOKRJDiHmIDOfYSGu4kMA7sm75Dxry3Hv5r3S5pDmfGg4+VpwhYJ0ff8bKm1MlO+NbC/u emTpF6Y0+sieoRz9hC9iUVRjaSQcmUetN5m/4aaXErbyTonhpBnpSRGXn6SfErqDfJstnq tutOhG5waE5as5OfXnZjp4gMR3n+UnM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-258-EWS-2KU8MuGqDl5cYcroPw-1; Wed, 22 Jul 2020 08:20:01 -0400 X-MC-Unique: EWS-2KU8MuGqDl5cYcroPw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9A09980BCAF; Wed, 22 Jul 2020 12:19:59 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 804715D9D3; Wed, 22 Jul 2020 12:19:59 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5D27E730D3; Wed, 22 Jul 2020 12:19:59 +0000 (UTC) Date: Wed, 22 Jul 2020 08:19:58 -0400 (EDT) From: Bob Peterson To: "Darrick J. Wong" Cc: Christoph Hellwig , Naohiro Aota , linux-xfs@vger.kernel.org, Damien Le Moal , linux-ext4@vger.kernel.org, Goldwyn Rodrigues , Dave Chinner , Matthew Wilcox , cluster-devel@redhat.com, Goldwyn Rodrigues , linux-fsdevel@vger.kernel.org, Johannes Thumshirn , linux-btrfs@vger.kernel.org Message-ID: <595939815.7378944.1595420398243.JavaMail.zimbra@redhat.com> In-Reply-To: <20200721203749.GF3151642@magnolia> References: <20200721183157.202276-1-hch@lst.de> <20200721183157.202276-4-hch@lst.de> <20200721203749.GF3151642@magnolia> Subject: Re: [Cluster-devel] [PATCH 3/3] iomap: fall back to buffered writes for invalidation failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.112.145, 10.4.195.20] Thread-Topic: iomap: fall back to buffered writes for invalidation failures Thread-Index: PLuOF8kQrR0wpZuOBcUe+YqC5MOZSw== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org ----- Original Message ----- > On Tue, Jul 21, 2020 at 08:31:57PM +0200, Christoph Hellwig wrote: > > Failing to invalid the page cache means data in incoherent, which is > > a very bad state for the system. Always fall back to buffered I/O > > through the page cache if we can't invalidate mappings. > > > > Signed-off-by: Christoph Hellwig > > Acked-by: Dave Chinner > > Reviewed-by: Goldwyn Rodrigues > > For the iomap and xfs parts, > Reviewed-by: Darrick J. Wong > > But I'd still like acks from Ted, Andreas, and Damien for ext4, gfs2, > and zonefs, respectively. > > (Particularly if anyone was harboring ideas about trying to get this in > before 5.10, though I've not yet heard anyone say that explicitly...) > > --D > > > --- > > fs/ext4/file.c | 2 ++ > > fs/gfs2/file.c | 3 ++- > > fs/iomap/direct-io.c | 16 +++++++++++----- > > fs/iomap/trace.h | 1 + > > fs/xfs/xfs_file.c | 4 ++-- > > fs/zonefs/super.c | 7 +++++-- > > 6 files changed, 23 insertions(+), 10 deletions(-) Hi, I think Andreas is on holiday this week, but the gfs2 portion looks good to me: For the gfs2 portion: Acked-by: Bob Peterson Regards, Bob Peterson