Re: [PATCH v2] md/bitmap: Avoid protection error writing bitmap page with block integrity

From: Christoph Hellwig
Date: Mon Jul 31 2023 - 03:29:32 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.