Message ID | 1556093494-30798-1-git-send-email-laoar.shao@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm/vmscan: don't disable irq again when count pgrefill for memcg | expand |
On Wed 24-04-19 16:11:34, Yafang Shao wrote: > We can use __count_memcg_events directly because this callsite is alreay > protected by spin_lock_irq. > > Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Acked-by: Michal Hocko <mhocko@suse.com> Thanks! > --- > mm/vmscan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 347c9b3..18d48e6 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -2035,7 +2035,7 @@ static void shrink_active_list(unsigned long nr_to_scan, > reclaim_stat->recent_scanned[file] += nr_taken; > > __count_vm_events(PGREFILL, nr_scanned); > - count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned); > + __count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned); > > spin_unlock_irq(&pgdat->lru_lock); > > -- > 1.8.3.1 >
diff --git a/mm/vmscan.c b/mm/vmscan.c index 347c9b3..18d48e6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2035,7 +2035,7 @@ static void shrink_active_list(unsigned long nr_to_scan, reclaim_stat->recent_scanned[file] += nr_taken; __count_vm_events(PGREFILL, nr_scanned); - count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned); + __count_memcg_events(lruvec_memcg(lruvec), PGREFILL, nr_scanned); spin_unlock_irq(&pgdat->lru_lock);
We can use __count_memcg_events directly because this callsite is alreay protected by spin_lock_irq. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)