Re: [RFC 05/12] bio: add bio_set_status
From: Christoph Hellwig
Date: Tue Dec 16 2025 - 03:00:01 EST
On Mon, Dec 08, 2025 at 12:10:12PM +0000, Andreas Gruenbacher wrote:
> Add a bio_set_status(bio, status) helper that sets bio->bi_status to
> status if status != BLK_STS_OK. Replace instances of this pattern in
> the code with a call to the new helper.
Why? Also the name suggest it is the canonical way to set a
status, and not just a helper to set it conditionally.