* + mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.patch added to -mm tree
@ 2021-05-13 0:00 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-13 0:00 UTC (permalink / raw)
To: hcochran, jack, mm-commits, mszeredi, sedat.dilek, tj, wuchi.zero
The patch titled
Subject: mm/page-writeback: use __this_cpu_inc() in account_page_dirtied()
has been added to the -mm tree. Its filename is
mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.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: Chi Wu <wuchi.zero@gmail.com>
Subject: mm/page-writeback: use __this_cpu_inc() in account_page_dirtied()
As account_page_dirtied() was always protected by xa_lock_irqsave(), so
using __this_cpu_inc() is better.
Link: https://lkml.kernel.org/r/20210512144742.4764-1-wuchi.zero@gmail.com
Signed-off-by: Chi Wu <wuchi.zero@gmail.com>
Cc: Howard Cochran <hcochran@kernelspring.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/page-writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/page-writeback.c~mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied
+++ a/mm/page-writeback.c
@@ -2445,7 +2445,7 @@ void account_page_dirtied(struct page *p
inc_wb_stat(wb, WB_DIRTIED);
task_io_account_write(PAGE_SIZE);
current->nr_dirtied++;
- this_cpu_inc(bdp_ratelimits);
+ __this_cpu_inc(bdp_ratelimits);
mem_cgroup_track_foreign_dirty(page, wb);
}
_
Patches currently in -mm which might be from wuchi.zero@gmail.com are
mm-page-writeback-fix-performance-when-bdis-share-of-ratio-is-0.patch
mm-page-writeback-update-the-comment-of-dirty-position-control.patch
mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-13 0:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 0:00 + mm-page-writeback-use-__this_cpu_inc-in-account_page_dirtied.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.