icnss2: Remove __GFP_DIRECT_RECLAIM flag to claim memory faster
To avoid watchdog bark in 10s timeout due to compaction latency in very bad fragmentation situation, Remove __GFP_DIRECT_RECLAIM flag to kzalloc to avoid delay, which will help to claim memory faster. Change-Id: I9d57e28c6e94dbd5cf02aaa9c6f84fe4b60fe36d CRs-Fixed: 3746405
This commit is contained in:

committed by
Ravindra Konda

parent
47ca780fca
commit
e409b8c5d2
@@ -3509,6 +3509,7 @@ int icnss_wlfw_get_info_send_sync(struct icnss_priv *plat_priv, int type,
|
|||||||
struct wlfw_get_info_resp_msg_v01 *resp;
|
struct wlfw_get_info_resp_msg_v01 *resp;
|
||||||
struct qmi_txn txn;
|
struct qmi_txn txn;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
int flags = GFP_KERNEL & ~__GFP_DIRECT_RECLAIM;
|
||||||
|
|
||||||
if (cmd_len > QMI_WLFW_MAX_DATA_SIZE_V01)
|
if (cmd_len > QMI_WLFW_MAX_DATA_SIZE_V01)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -3516,11 +3517,11 @@ int icnss_wlfw_get_info_send_sync(struct icnss_priv *plat_priv, int type,
|
|||||||
if (test_bit(ICNSS_FW_DOWN, &plat_priv->state))
|
if (test_bit(ICNSS_FW_DOWN, &plat_priv->state))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
req = kzalloc(sizeof(*req), GFP_KERNEL);
|
req = kzalloc(sizeof(*req), flags);
|
||||||
if (!req)
|
if (!req)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
resp = kzalloc(sizeof(*resp), GFP_KERNEL);
|
resp = kzalloc(sizeof(*resp), flags);
|
||||||
if (!resp) {
|
if (!resp) {
|
||||||
kfree(req);
|
kfree(req);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Reference in New Issue
Block a user