Re: [PATCH v6 2/3] mm/swap: use swap_ops to register swap device's methods
From: Baoquan He
Date: Wed May 13 2026 - 12:23:11 EST
On 05/12/26 at 10:45pm, Christoph Hellwig wrote:
> Looking a bit more I also think this abastraction is still leaky because
> the unplug calls for fs based swap aren't properly abstracted out.
Right, and this can be easily done by adding a unplug callback in
swap_ops.
>
> (note that it would make sense to use them for block based swap as well,
> as building a single bio will be a lot more efficient than relying on
> block layer plugging, but that's a separate issue)
OK, look forward to seeing it from your post.