RE:(2) [PATCH v2] md/bitmap: Avoid protection error writing bitmap page with block integrity

From: Jinyoung Choi
Date: Mon Jul 31 2023 - 03:49:14 EST


> On Thu, Jul 20, 2023 at 06:29:57PM +0900, Jinyoung Choi wrote:
> > Changing the bitmap page is also possible on the page where the DMA is
> > being performed or scheduled in the MD.
>
> Are you guys actually using the whacky bitmap feature?  If so, this
> really is the least of our problems and you need to invest some real
> work into it to get it off ->bmap and into using ->read_iter and
> ->write_iter.  Right now Song has a series from me queued up to
> deprecated it.
>
> I also don't think a simple wait for existing writers prevents you
> from other modifications, but maybe I'm issing something.

Hi, Christoph.

I think the way to write bitmap page like you should be changed.
This patch is a simple workaround in the current system.

I will check the patches you provided for bitmap processing.

Thank you for your review.

Best Regards,
Jinyoung.