The patch titled Subject: mm-annotate-refault-stalls-from-swap_readpage-fix has been added to the -mm tree. Its filename is mm-annotate-refault-stalls-from-swap_readpage-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-annotate-refault-stalls-from-swap_readpage-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-annotate-refault-stalls-from-swap_readpage-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-annotate-refault-stalls-from-swap_readpage-fix add comment, per Johannes Cc: Dan Streetman <ddstreet@xxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Seth Jennings <sjenning@xxxxxxxxxx> Cc: Shakeel Butt <shakeelb@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_io.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/mm/page_io.c~mm-annotate-refault-stalls-from-swap_readpage-fix +++ a/mm/page_io.c @@ -361,6 +361,11 @@ int swap_readpage(struct page *page, boo VM_BUG_ON_PAGE(!PageLocked(page), page); VM_BUG_ON_PAGE(PageUptodate(page), page); + /* + * Count submission time as memory stall. When the device is congested, + * or the submitting cgroup IO-throttled, submission can be a + * significant part of overall IO time. + */ psi_memstall_enter(&pflags); if (frontswap_load(page) == 0) { _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-slub-fix-a-deadlock-in-show_slab_objects-fix.patch ocfs2-protect-extent-tree-in-the-ocfs2_prepare_inode_for_write-checkpatch-fixes.patch mm.patch mm-pgmap-use-correct-alignment-when-looking-at-first-pfn-from-a-region-checkpatch-fixes.patch mm-oom-avoid-printk-iteration-under-rcu-fix.patch hugetlb-remove-duplicated-code-checkpatch-fixes.patch hugetlb-remove-unused-hstate-in-hugetlb_fault_mutex_hash-fix.patch mm-annotate-refault-stalls-from-swap_readpage-fix.patch linux-next-git-rejects.patch diff-sucks.patch samples-watch_queue-watch_test-fix-build.patch drivers-tty-serial-sh-scic-suppress-warning.patch kernel-forkc-export-kernel_thread-to-modules.patch