diff options
author | Minchan Kim <minchan@google.com> | 2019-12-01 02:58:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-01 21:59:11 +0100 |
commit | 937790699be9c8100e5358625e7dfa8b32bd33f2 (patch) | |
tree | 7a86cce7da2bc4023ee9c313c7ba04e5534f72b9 /mm/mempool.c | |
parent | mm/Kconfig: fix trivial help text punctuation (diff) | |
download | linux-937790699be9c8100e5358625e7dfa8b32bd33f2.tar.xz linux-937790699be9c8100e5358625e7dfa8b32bd33f2.zip |
mm/page_io.c: annotate refault stalls from swap_readpage
If a block device supports rw_page operation, it doesn't submit bios so
the annotation in submit_bio() for refault stall doesn't work. It
happens with zram in android, especially swap read path which could
consume CPU cycle for decompress. It is also a problem for zswap which
uses frontswap.
Annotate swap_readpage() to account the synchronous IO overhead to
prevent underreport memory pressure.
[akpm@linux-foundation.org: add comment, per Johannes]
Link: http://lkml.kernel.org/r/20191010152134.38545-1-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempool.c')
0 files changed, 0 insertions, 0 deletions