[dm-devel] [PATCH] dm-zoned: Use GFP_NOIO in I/O path
Damien Le Moal
damien.lemoal at wdc.com
Mon Jul 24 23:56:29 UTC 2017
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
More information about the dm-devel
mailing list