mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
msm: ipa3: Adding changes to retry page allocation in WQ
Currently WQ was exiting when page allocation was failed, due to that number of WQ schedule will increase. To avoid this retrying the page allocation in same WQ context. Change-Id: Iefb85ae1552aa595a0959664c3ba55f6aa742551 Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
This commit is contained in:
parent
f0f97b4005
commit
96bf8d6ea0
1 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/delay.h>
|
||||
|
|
@ -2146,8 +2147,8 @@ begin:
|
|||
goto fail_kmem_cache_alloc;
|
||||
rx_pkt = ipa3_alloc_rx_pkt_page(GFP_KERNEL, true);
|
||||
if (unlikely(!rx_pkt)) {
|
||||
IPAERR("ipa3_alloc_rx_pkt_page fails\n");
|
||||
break;
|
||||
IPAERR_RL("ipa3_alloc_rx_pkt_page fails\n");
|
||||
goto fail_kmem_cache_alloc;
|
||||
}
|
||||
rx_pkt->sys = sys;
|
||||
sys->repl->cache[curr] = rx_pkt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue