[PATCH 2/4] block: get rid of blk_status_to_{errno,str} inconsistency

Christoph Hellwig hch at infradead.org
Thu Mar 5 15:13:33 CET 2026


On Wed, Mar 04, 2026 at 08:04:07PM +0100, Andreas Gruenbacher wrote:
> Change blk_status_to_str() to be consistent with blk_status_to_errno()
> and return "I/O" for undefined status codes.
> 
> With that, the fallback case in the blk_errors array can be removed with
> no change in behavior.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>

While you're at it: blk_status_to_str is exported, but as no modular
users, can you also drop the export?



More information about the drbd-dev mailing list