[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5615572-974e-74cc-6c34-1de618b777cf@gentwo.de>
Date: Fri, 3 Feb 2023 10:34:22 +0100 (CET)
From: Christoph Lameter <cl@...two.de>
To: Marcelo Tosatti <mtosatti@...hat.com>
cc: Aaron Tomlin <atomlin@...mlin.com>,
Frederic Weisbecker <frederic@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH 3/5] mm/vmstat: use cmpxchg loop in cpu_vm_stats_fold
On Thu, 2 Feb 2023, Marcelo Tosatti wrote:
> > I thought you would only run this while the kernel is not active on the
> > remote cpu? Then you dont need any cmpxchg and you can leave the function
> > as is.
>
> The remote cpu can enter kernel mode while this function executes.
Isnt there some lock/serializtion to stall the kernel until you are done?
> There is no mode which indicates userspace cannot enter the kernel.
There are lot of thinngs that happen upon entry to the kernel. I would
hope that you can do something there. Scheduler?
Powered by blists - more mailing lists