Re: [PATCH 1/2] zram: use zram_read_from_zspool() in writeback

From: Sergey Senozhatsky
Date: Wed Dec 11 2024 - 05:08:21 EST


On (24/12/11 17:25), Sergey Senozhatsky wrote:
> We only can read pages from zspool in writeback, zram_read_page()
> is not really right in that context not only because it's a more
> generic function that handles ZRAM_WB pages, but also because it
> requires us to unlock slot between slot flag check and actual page
> read. Use zram_read_from_zspool() instead and do slot flags check
> and page read under the same slot lock.


Andrew, sorry for the noise, please ignore this mini-series. Let me
re-send it combined with v2 of `zram: split page type read/write handling`
series [1]

[1] https://lore.kernel.org/linux-kernel/20241210105420.1888790-1-senozhatsky@xxxxxxxxxxxx