Re: [RFC 05/12] bio: add bio_set_status

Christoph Hellwig
2025-12-16T08:00:01Z

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.