Re: [PATCH v2 6/7] md/raid1,raid10: skip futile retries on P2PDMA mapping failures
From: Mykola Marzhan
Date: Wed Jul 22 2026 - 15:08:02 EST
> Instead, I think it makes more sense to introduce a new BLK_STS_P2PDMA
> error and use that. ... simplifies patch 6 and 7 significantly.
> https://github.com/lsgunth/linux blk-sts-p2p-err
> Feel free to run with that.
Thank you, it is much cleaner now! v4 is built on your branch,
your patches kept under your authorship.
Two things I changed in them:
1) read patch reads bio->bi_status after bio_put(); v4 moves it
above the put.
2) for the narrow_write_error(): a P2PDMA failure is whole-range
and deterministic, so v4 records the whole range as a bad block
in the completion handler instead of retrying block by block.
Mykola