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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 83740C4361B for ; Sat, 19 Dec 2020 15:34:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BC90230FF for ; Sat, 19 Dec 2020 15:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726770AbgLSPeC (ORCPT ); Sat, 19 Dec 2020 10:34:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbgLSPeC (ORCPT ); Sat, 19 Dec 2020 10:34:02 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A86EC0617B0; Sat, 19 Dec 2020 07:33:21 -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=77WRbXUJE7fiLzSym42sJcP/7e7mLX6ggMCc9PUwzE4=; b=wFDwYMBdTKtCfWavneHU3CnWYo aDS7KDHLWlAVYyygr07w3EElo5RO9I+friSIBa8UC/W+AuR4TGZobeoG3b474FCfECVIJGzjq4gRS 95M5tc5O1d/VCJNWbrzBpYwVRlatygQCOIzf5bXfJ3ce+Gpeel0NCT8Q4BQ7Ecp28EH307OrWPy9q ABgWl+BH7k40W6+EqoqCGVH4wAUEJRDIZOLMfOjOsk3bloDKKjG1rRZiiW+XefySqOyCUGA1QDj65 xSSlgSsrmR/OKdaEEjwhBrYwS9Tc4CfYPGWJUX1pGepgKx/m0DpgRk6sGJXMsV/U5NdsR4jM+9rPf UAOV/cDQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqeEK-0003Ox-J0; Sat, 19 Dec 2020 15:33:12 +0000 Date: Sat, 19 Dec 2020 15:33:12 +0000 From: Matthew Wilcox To: Jeff Layton Cc: Amir Goldstein , Sargun Dhillon , Miklos Szeredi , Vivek Goyal , overlayfs , Linux FS-devel Mailing List , NeilBrown , Jan Kara Subject: Re: [PATCH v3] errseq: split the ERRSEQ_SEEN flag into two new flags Message-ID: <20201219153312.GS15600@casper.infradead.org> References: <20201217150037.468787-1-jlayton@kernel.org> <20201219061331.GQ15600@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-unionfs@vger.kernel.org On Sat, Dec 19, 2020 at 07:53:12AM -0500, Jeff Layton wrote: > On Sat, 2020-12-19 at 06:13 +0000, Matthew Wilcox wrote: > > On Thu, Dec 17, 2020 at 10:00:37AM -0500, Jeff Layton wrote: > > > Overlayfs's volatile mounts want to be able to sample an error for their > > > own purposes, without preventing a later opener from potentially seeing > > > the error. > > > > umm ... can't they just copy the errseq_t they're interested in, followed > > by calling errseq_check() later? > > > > They don't want the sampling for the volatile mount to prevent later > openers from seeing an error that hasn't yet been reported. That's why they should use errseq_check(), not errseq_check_and_advance() ...