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 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel