Re: [PATCH-RFC] md-bitmap: use page cache for file backed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 17, 2025 at 06:56:36PM -0700, Keith Busch wrote:
> The md bitmap file had been using a custom page and buffer_head mapping,
> going around the filesystem. Use pages from the file's page cache
> instead, removing the abused buffer_head and bmap usage.
> 
> For file backed bitmaps, pages are initialized with read_mapping_page
> instead of allocating special pages. This returns pages synced with the
> backing file. Persisting changes just needs to set the dirty pages and
> initiate a write back as needed.

Using the page cache all the way down in the I/O stack introduces a
significant deadlock potential as we can't use mempool for it.

See the discussion related to Yu Kuai's lockless bitmap series.  Reading
the cover letter for that it is intended to be on-disk compatible to
the existing bitmap, so maybe we should concentrate on the new version
of that instead of having to parallel bitmap efforts?




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux