NeilBrown 7eadabc05d mm: perform async writes to SWP_FS_OPS swap-space using ->swap_rw
This patch switches swap-out to SWP_FS_OPS swap-spaces to use ->swap_rw
and makes the writes asynchronous, like they are for other swap spaces.

To make it async we need to allocate the kiocb struct from a mempool. 
This may block, but won't block as long as waiting for the write to
complete.  At most it will wait for some previous swap IO to complete.

Link: https://lkml.kernel.org/r/164859778126.29473.12399585304843922231.stgit@noble.brown
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: David Howells <dhowells@redhat.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-05-09 18:20:48 -07:00
..
2021-05-05 11:27:24 -07:00
2022-03-24 19:06:45 -07:00
2022-03-22 15:57:01 -07:00
2022-02-14 19:51:47 +01:00
2022-04-28 23:16:13 -07:00
2022-01-15 16:30:28 +02:00
2022-03-23 18:03:08 -07:00
2022-05-09 18:20:47 -07:00
2022-05-09 18:20:47 -07:00
2022-05-09 18:20:47 -07:00
2022-04-28 23:16:14 -07:00
2022-03-22 17:03:12 -07:00
2022-03-24 19:06:44 -07:00
2022-01-23 06:20:44 +02:00
2021-05-07 00:26:35 -07:00
2022-04-01 14:40:42 -04:00
2022-05-09 18:20:47 -07:00
2022-05-09 18:20:47 -07:00
2022-03-22 18:26:56 -07:00
2022-05-09 18:20:47 -07:00
2022-04-28 23:16:00 -07:00
2022-04-28 23:16:16 -07:00
2022-01-15 16:30:31 +02:00
2022-05-09 18:20:47 -07:00