Re: [PATCH md-6.13 5/5] md/md-bitmap: move bitmap_{start, end}write to md upper layer

From: Yu Kuai
Date: Fri Nov 22 2024 - 03:32:49 EST


Hi,

在 2024/11/22 11:14, Xiao Ni 写道:
Ok, one place that I found is that raid5 can do extra end write while
stripe->dev[].towrite is NULL, the null checking is missing. I'll
mention that in the next version.
Does this can cause the deadlock?

Not deadlock, the bit counter will underflow and reach COUNTER_MAX, and
bitmap_startwrite() can wait forever for the counter.

Thanks,
Kuai