Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2047e7a4 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

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: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent 8376a76a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment