On 3/3/22 11:23, Christoph Hellwig wrote:
Can you try this patch on top of the series?
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 6a072543bde4d..73b8bc9d67cf6 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -883,7 +883,10 @@ static inline void blk_account_io_done(struct request *req, u64 now)
static void __blk_account_io_start(struct request *rq)
{
- rq->part = rq->bio->bi_bdev;
+ if (rq->bio)
+ rq->part = rq->bio->bi_bdev;
+ else /* should only happen for dm-mpath flush requests */
+ rq->part = rq->q->disk->part0;
part_stat_lock();
update_io_ticks(rq->part, jiffies, false);
Hi Christoph,
This patch fixes the crash I reported. With this patch applied on top of the
hch-block/freeze-for-next branch blktests produces the same results on my setup
as for Jens' for-next branch.
Thanks!
Bart.