From: Michal Hocko <mhocko@suse.com>
To: Yafang Shao <laoar.shao@gmail.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org, shaoyafang@didiglobal.com
Subject: Re: [PATCH] mm/vmscan: don't disable irq again when count pgrefill for memcg
Date: Thu, 25 Apr 2019 08:30:48 +0200 [thread overview]
Message-ID: <20190425063048.GI12751@dhcp22.suse.cz> (raw)
In-Reply-To: <1556093494-30798-1-git-send-email-laoar.shao@gmail.com>
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
>
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2019-04-25 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 8:11 Yafang Shao
2019-04-25 6:30 ` Michal Hocko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190425063048.GI12751@dhcp22.suse.cz \
--to=mhocko@suse.com \
--cc=akpm@linux-foundation.org \
--cc=laoar.shao@gmail.com \
--cc=linux-mm@kvack.org \
--cc=shaoyafang@didiglobal.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox