From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753213AbbDCBEG (ORCPT ); Thu, 2 Apr 2015 21:04:06 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:33767 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbbDCBED (ORCPT ); Thu, 2 Apr 2015 21:04:03 -0400 Date: Thu, 2 Apr 2015 18:04:00 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrey Ryabinin cc: Andrew Morton , Dave Kleikamp , Christoph Hellwig , Sebastian Ott , Mikulas Patocka , Catalin Marinas , LKML , "linux-mm@kvack.org" , jfs-discussion@lists.sourceforge.net Subject: Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator In-Reply-To: <551A861B.7020701@samsung.com> Message-ID: References: <551A861B.7020701@samsung.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 31 Mar 2015, Andrey Ryabinin wrote: > > We don't have a need to set PAGE_EXT_DEBUG_POISON on these pages sitting > > in the reserved pool, nor do we have a need to do kmap_atomic() since it's > > already mapped and must be mapped to be on the reserved pool, which is > > handled by mempool_free(). > > > > Hmm.. I just realized that this statement might be wrong. > Why pages has to be mapped to be on reserved pool? > mempool could be used for highmem pages and there is no need to kmap() > until these pages will be used. > > drbd (drivers/block/drbd) already uses mempool for highmem pages: > Yes, you're exactly right, I didn't see this because the mempool is created in one file and then solely used in another file, but regardless we still need protection from this usecase.