Received: by 10.192.165.148 with SMTP id m20csp3910597imm; Mon, 23 Apr 2018 14:53:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoT6ICMBHH95tVkNJSoUbymFzh5C56njKLyMmHQgg5+ZHvvJ26OvCuI4jpSLRgW/ObEzHlG X-Received: by 10.101.96.35 with SMTP id p3mr952403pgu.175.1524520436641; Mon, 23 Apr 2018 14:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524520436; cv=none; d=google.com; s=arc-20160816; b=Nt39MrIcl245U8+nJRR3btQk9exQuw/EjK9XVvb7A2S0d9i0JzBUzULZCXNoWMtGPd GEOSDb3S2oYEn2w2ktxTjKW2KrtSyjt17sZ4ArfbhPauIcPNq5cxyiPJEMr9lxq5KACo eGL+0Y0dQYvk/vNst5baLwlBV4bQUqMv527Xt237N7cWBNa1vCtTuUvrTLNRUqNtQnpQ UiB9FOQif/JZzZEfiLu9Iovw/gDlyfftJco36PYD9gNkRcqKz3CeVZgZrm/AR6T0V+zY dOIYYICHNIOrcRy0/USUiYOileWAX3sb+tbDz/V1GMs8b081d8F/ySAEP8eUvKqAm8G9 eNIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QbjSen8tIsMN2k522IDpiCdmZroerSwoB7VrfImad0k=; b=uDgAU96WWoeo2WVHcHde2uaRkaG9nH3EF1Ug96V4dsEAe47GGCj/e7QAqLFZysS4QS 3ST8KcXjU4TZo/ep95YNrgen3pYRMMgof7kowtdc7iCMzVGGfgHNDJuGDXpDbsbFvD2X ulEJfUffSYPm1VSXxb3kAkWT9YFI5PWEN8k40KXVfEQMurvIJXvgOQa7lBYAor2Sjckm QUB/vw0Hp6jaUH0PHDkfvuDwsvQwe2eQ+Fdk2bnFko27Ex8KvWPOd0nqG9OCU/6/jXAY ipLr0XCwXeWI0VvHCqX3tWNAlK9D8rsgPUGRvFgL/l7yMfzVvxusaPi82C0gseFRHkzm L3Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=muyEFfNO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si9932452pgp.496.2018.04.23.14.53.41; Mon, 23 Apr 2018 14:53:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=muyEFfNO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932529AbeDWVvz (ORCPT + 99 others); Mon, 23 Apr 2018 17:51:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55984 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932318AbeDWVvu (ORCPT ); Mon, 23 Apr 2018 17:51:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QbjSen8tIsMN2k522IDpiCdmZroerSwoB7VrfImad0k=; b=muyEFfNONYpSsIlR/Yr/BU1FW bq9qoep7nP+76pI3DigqZ9hVoaIJskT2Bp2t75C70IV+94QbuUuJU9odn6Wr/2yqTqZCuZYhA95Es Ic1eAhXMNPHe9cuQdnAeymNlDXH1HxVQJVia15XK0JF6NscXYXkHYqAY2hXqH1U3ImLIihfvXfDlq LWgMWUnb/DZviBP9JXqAAGg09paVtC07ijF8i7Za2vpcXbbtKI2t6ROzjiD3/y4P0CuvL+IeYd7kt TJqrrqHaFKT6KqbYs2ZY8+8/5IauM1Gm22JfRi3QH/aex5y7NGD7OjxykiayfqXYD9VKRYM+1CfHN mT32OtULw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAjNG-0000AY-9p; Mon, 23 Apr 2018 21:51:50 +0000 Date: Mon, 23 Apr 2018 14:51:50 -0700 From: Matthew Wilcox To: Andres Freund Cc: linux-fsdevel@vger.kernel.org, Jeff Layton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Always report a writeback error once Message-ID: <20180423215150.GI13383@bombadil.infradead.org> References: <20180423204208.GG13383@bombadil.infradead.org> <20180423205730.34wvykqhefbkrtfw@alap3.anarazel.de> <20180423214348.GH13383@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423214348.GH13383@bombadil.infradead.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 02:43:48PM -0700, Matthew Wilcox wrote: > On Mon, Apr 23, 2018 at 01:57:30PM -0700, Andres Freund wrote: > > On 2018-04-23 13:42:08 -0700, Matthew Wilcox wrote: > > > @@ -119,19 +119,11 @@ EXPORT_SYMBOL(errseq_set); > > > errseq_t errseq_sample(errseq_t *eseq) > > > { > > > > There's a comment above this: > > * > > * This function allows callers to sample an errseq_t value, marking it as > > * "seen" if required. > > Oh, good catch. I'll fix that. Thanks! How does this look? @@ -111,27 +111,22 @@ EXPORT_SYMBOL(errseq_set); * errseq_sample() - Grab current errseq_t value. * @eseq: Pointer to errseq_t to be sampled. * - * This function allows callers to sample an errseq_t value, marking it as - * "seen" if required. + * This function allows callers to initialise their errseq_t variable. + * If the error has been "seen", new callers will not see an old error. + * If there is an unseen error in @eseq, the caller of this function will + * see it the next time it checks for an error. * + * Context: Any context. * Return: The current errseq value. */ errseq_t errseq_sample(errseq_t *eseq)