[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aUO_u7x-4oIfKMei@infradead.org>
Date: Thu, 18 Dec 2025 00:47:55 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Andreas Gruenbacher <agruenba@...hat.com>
Cc: Christoph Hellwig <hch@...radead.org>, Jens Axboe <axboe@...nel.dk>,
Chris Mason <clm@...com>, David Sterba <dsterba@...e.com>,
linux-block@...r.kernel.org, linux-btrfs@...r.kernel.org,
linux-raid@...r.kernel.org, dm-devel@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [RFC 06/12] bio: don't check target->bi_status on error
On Tue, Dec 16, 2025 at 12:20:07PM +0100, Andreas Gruenbacher wrote:
> > I still don't understand what you're saying here at all, or what this is
> > trying to fix or optimize.
>
> When we have this construct in the code and we know that status is not 0:
>
> if (!bio->bi_status)
> bio->bi_status = status;
>
> we can just do this instead:
>
> bio>bi_status = status;
But this now overrides the previous status instead of preserving the
first error?
Powered by blists - more mailing lists