On 11/7/19 5:57 PM, Damien Le Moal wrote:
- buf = vzalloc(bufsize); - if (buf) - *buflen = bufsize; + while (bufsize >= SECTOR_SIZE) { + buf = vzalloc(bufsize); + if (buf) { + *buflen = bufsize; + return buf; + } + bufsize >>= 1; + }
Hi Damien,Has it been considered to pass the __GFP_NORETRY flag to this vzalloc() call?
Thanks, Bart.