From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Subject: Re: [PATCH v2] mm: expand documentation over __read_mostly Date: Thu, 7 May 2020 10:52:22 -0700 Message-ID: <202005071052.1522C624@keescook> References: <20200507161424.2584-1-mcgrof@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200507161424.2584-1-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org To: Luis Chamberlain Cc: cl@linux.com, akpm@linux-foundation.org, arnd@arndb.de, willy@infradead.org, aquini@redhat.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Thu, May 07, 2020 at 04:14:24PM +0000, Luis Chamberlain wrote: > __read_mostly can easily be misused by folks, its not meant for > just read-only data. There are performance reasons for using it, but > we also don't provide any guidance about its use. Provide a bit more > guidance over its use. > > Acked-by: Christoph Lameter > Signed-off-by: Luis Chamberlain Reviewed-by: Kees Cook -- Kees Cook From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 7 May 2020 10:52:22 -0700 From: Kees Cook Subject: Re: [PATCH v2] mm: expand documentation over __read_mostly Message-ID: <202005071052.1522C624@keescook> References: <20200507161424.2584-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507161424.2584-1-mcgrof@kernel.org> Sender: owner-linux-mm@kvack.org To: Luis Chamberlain Cc: cl@linux.com, akpm@linux-foundation.org, arnd@arndb.de, willy@infradead.org, aquini@redhat.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-ID: Message-ID: <20200507175222.U01Saq3KWYkHZPWoQ6iY82LOO3PpTI_1sERiRLBPC8Q@z> On Thu, May 07, 2020 at 04:14:24PM +0000, Luis Chamberlain wrote: > __read_mostly can easily be misused by folks, its not meant for > just read-only data. There are performance reasons for using it, but > we also don't provide any guidance about its use. Provide a bit more > guidance over its use. > > Acked-by: Christoph Lameter > Signed-off-by: Luis Chamberlain Reviewed-by: Kees Cook -- Kees Cook