mmc: core: Use GFP_NOIO and GFP_NOFAIL for memory allocation
For low memory devices allocating memory using GFP_KERNEL can take
a lot of time as it can perform disk IO's to free memory which can
lead to recovery handler kicking in and completing the request which
started memory allocation though that request is still in the driver
and can continue.
Use GFP_NOIO and GFP_NOFAIL for allocating memory to the ext_csd
structure.
Change-Id: I2775191d6fc15c768862a9b5ca01a4e8e3c1b4c7
Signed-off-by:
Sarthak Garg <sartgarg@codeaurora.org>
Loading
Please register or sign in to comment