diff options
| author | Christoph Hellwig <[email protected]> | 2023-04-11 19:14:58 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-18 16:29:59 -0700 |
| commit | 4e3c87b9421df497d849ae61aab9762de7f66afb (patch) | |
| tree | c444fa9d5ccb3dddf1cb01345679e20c984a0c4a /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | 0cd97a0372f21a66d1591114d0a12391e8d977d7 (diff) | |
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/[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions