Christoph Hellwig 4e3c87b942 zram: fix synchronous reads
Currently nothing waits for the synchronous reads before accessing the
data.  Switch them to an on-stack bio and submit_bio_wait to make sure the
I/O has actually completed when the work item has been flushed.  This also
removes the call to page_endio that would unlock a page that has never
been locked.

Drop the partial_io/sync flag, as chaining only makes sense for the
asynchronous reads of the entire page.

Link: https://lkml.kernel.org/r/20230411171459.567614-17-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-18 16:29:59 -07:00
..
2023-04-18 16:29:59 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-02-22 13:35:51 -08:00
2023-03-14 19:20:48 -06:00
2023-01-04 14:44:13 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-01-29 15:18:35 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-01-12 17:02:20 -06:00
2022-06-28 06:33:15 -06:00