Re: [PATCH 04/18] MM: perform async writes to SWP_FS_OPS swap-space

From: Christoph Hellwig
Date: Tue Dec 21 2021 - 03:41:36 EST


On Fri, Dec 17, 2021 at 10:48:22AM +1100, NeilBrown wrote:
> Writes to SWP_FS_OPS swapspace is currently synchronous. To make it
> async we need to allocate the kiocb struct which may block, but won't
> block as long as waiting for the write to complete would block.

Against a little helper for the SWP_FS_OPS case of __swap_writepage
would be nice. But otherwise this looks good to me.