Re: [PATCH] xen/blkfront: fix memory allocation flags in blkfront_setup_indirect()

2020-04-06 Thread Roger Pau Monné
On Fri, Apr 03, 2020 at 11:00:34AM +0200, Juergen Gross wrote: > Commit 1d5c76e664333 ("xen-blkfront: switch kcalloc to kvcalloc for > large array allocation") didn't fix the issue it was meant to, as the > flags for allocating the memory are GFP_NOIO, which will lead the > memory allocation fallin

Re: [PATCH] xen/blkfront: fix memory allocation flags in blkfront_setup_indirect()

2020-04-03 Thread Boris Ostrovsky
On 4/3/20 5:00 AM, Juergen Gross wrote: > Commit 1d5c76e664333 ("xen-blkfront: switch kcalloc to kvcalloc for > large array allocation") didn't fix the issue it was meant to, as the > flags for allocating the memory are GFP_NOIO, which will lead the > memory allocation falling back to kmalloc().

[PATCH] xen/blkfront: fix memory allocation flags in blkfront_setup_indirect()

2020-04-03 Thread Juergen Gross
Commit 1d5c76e664333 ("xen-blkfront: switch kcalloc to kvcalloc for large array allocation") didn't fix the issue it was meant to, as the flags for allocating the memory are GFP_NOIO, which will lead the memory allocation falling back to kmalloc(). So instead of GFP_NOIO use GFP_KERNEL and do all