Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6011463pxu; Wed, 23 Dec 2020 10:54:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJywTtJk+gKKUaEmEl/rNoB+RsvOzY1vQ3OuRP9YCnKLx9/gZzmqPHFZX8xTD9c1lP7boIJ2 X-Received: by 2002:a17:906:7f10:: with SMTP id d16mr25244499ejr.104.1608749686999; Wed, 23 Dec 2020 10:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608749686; cv=none; d=google.com; s=arc-20160816; b=DzECk+AHCJcubS3gmzVkVfH9Y2X27KH1BjdVGz3ArxJdr6H6OlMwFb2QcPwmmzXmmc 3rTVtq/T8lYnIx3uf5paqh6PptyOJYqKil/BNOHIH/j+4iCtj06DAkVGHh3z6SOFjdHN 3zDFKhkjdRS79JTmsqRNpxuIbDWqhnsAq4dJq1KttrJJ9dq7/BPMxWQ3WErYITIngQTq VZgUuvPYVPPAdSv7SBunriqebLzSATCEP7yXASB7jssRjP4guHS68YRHqU2EmJd43ioI sG6lkvGyLZi2IZ9XgsiSDk+5Z0CZ6rd8izUN86Lv+h6xKN0dpO3svckc7dCackGbd8Ca fZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KlQqVABxLbNILRv0NGDx6eVfUShT0JRDanNn1n1jfDE=; b=OJhy+Qz8FEW/y/xO6enrPNrCykVgDWJJdheHH/EJd0ewEpiUB/TBAPz5U3cPaMxHAp ePEA6PDbwAuBZMT1xEfCB8/1+mFDe7xMZAQCWAwbKxtdJsaL5hJntq4jXZU2SMOsQmhV ZhksV3ngduXWrk039vTV1vyZz1fBCZPQH1FUmAjT1joXEO60hZ2eflNG/+SoMP2nhnOG xC3RaUk0HMjGMTvykDm085GxLNYTUF/TiSKw1QzAccHjgvBU5yR9yGb122QYUZbioMwE KCSahGPFnOOJpyMvBZFPGtM09hNeMAPm9sTkDGd7+lIPozboRYn2eB6s4pC6NC20c8IR FOWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TQQAiTLy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si12538867ejw.42.2020.12.23.10.54.01; Wed, 23 Dec 2020 10:54:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=casper.20170209 header.b=TQQAiTLy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbgLWSva (ORCPT + 99 others); Wed, 23 Dec 2020 13:51:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbgLWSva (ORCPT ); Wed, 23 Dec 2020 13:51:30 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8CD7C061794; Wed, 23 Dec 2020 10:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KlQqVABxLbNILRv0NGDx6eVfUShT0JRDanNn1n1jfDE=; b=TQQAiTLyezaZFrL6XaF5ThouWU 5aitGbmq3XND46x8/Xi6YsBBox6sSdi/lNbK8JbkYT6wBBo3wByKMq9wlzJ/ZhtRQ2z/dPgqFXyvj CWXv0EEdjJsyi86O93TZ3AEaNofsEYvSEnkQ67e2wkU5U6Tc4ZhX1orYR3SVd5ycY28dkMZpA1Qrq WEauczzL/9p0lZMUs+szdcgefgZqV3cw3Lg6etn38u+y6LPogaXid93409aKksu078b7Ze1X5mOKR RgN81cnL6MZwBORXf4FPKK0QXkukNae6fGP3SOhQusGaqU65F2A0W3wyuNU+V53u6pk1CFdKueVsD 4i3WtKFA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ks9Dg-00048r-Qt; Wed, 23 Dec 2020 18:50:44 +0000 Date: Wed, 23 Dec 2020 18:50:44 +0000 From: Matthew Wilcox To: Sargun Dhillon Cc: Vivek Goyal , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-unionfs@vger.kernel.org, jlayton@kernel.org, amir73il@gmail.com, miklos@szeredi.hu, jack@suse.cz, neilb@suse.com, viro@zeniv.linux.org.uk, hch@lst.de Subject: Re: [PATCH 3/3] overlayfs: Report writeback errors on upper Message-ID: <20201223185044.GQ874@casper.infradead.org> References: <20201221195055.35295-1-vgoyal@redhat.com> <20201221195055.35295-4-vgoyal@redhat.com> <20201223182026.GA9935@ircssh-2.c.rugged-nimbus-611.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201223182026.GA9935@ircssh-2.c.rugged-nimbus-611.internal> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 06:20:27PM +0000, Sargun Dhillon wrote: > I fail to see why this is neccessary if you incorporate error reporting into the > sync_fs callback. Why is this separate from that callback? If you pickup Jeff's > patch that adds the 2nd flag to errseq for "observed", you should be able to > stash the first errseq seen in the ovl_fs struct, and do the check-and-return > in there instead instead of adding this new infrastructure. You still haven't explained why you want to add the "observed" flag.