From: Damien Le Moal Subject: Re: [PATCH] dm-zoned: Use GFP_NOIO in I/O path Date: Tue, 25 Jul 2017 08:56:29 +0900 Message-ID: References: <20170724074437.24008-1-damien.lemoal@wdc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: Bart Van Assche , dm-devel@redhat.com, Alasdair Kergon , Mike Snitzer List-Id: dm-devel.ids Mikulas, On 7/24/17 22:45, Mikulas Patocka wrote: > > > On Mon, 24 Jul 2017, Damien Le Moal wrote: > >> Use GFP_NOIO for memory allocations in the I/O path. Other memory >> allocations in the initialization path can keep using GFP_KERNEL. > > Good patch. BTW. that GFP_NOFS should also be changed to GFP_NOIO. > > GFP_NOFS prevents allocator recursion to the filesystem. > GFP_NOIO prevents allocator recursion to the filesystem and I/O stack. > > With GFP_NOFS, it is still theoretically possible that the allocation > recurses into the I/O layer (for example when swapping to a block device). Ah, yes indeed. I will post a v2. Thank you for the review. Best regards. -- Damien Le Moal, Western Digital