[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210323102101.tvlgbijpy37hclgj@box>
Date: Tue, 23 Mar 2021 13:21:01 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: yanfei.xu@...driver.com
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] khugepaged: Raplace barrier() with READ_ONCE() for a
selective variable
On Tue, Mar 23, 2021 at 05:27:30PM +0800, yanfei.xu@...driver.com wrote:
> From: Yanfei Xu <yanfei.xu@...driver.com>
>
> READ_ONCE() is more selective and lightweight. It is more appropriate that
> using a READ_ONCE() for the certain variable to prevent the compiler from
> reordering.
>
> Signed-off-by: Yanfei Xu <yanfei.xu@...driver.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
--
Kirill A. Shutemov
Powered by blists - more mailing lists