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:
Ashok Vuyyuru 2022-11-14 12:30:53 +05:30 • committed by Jagadeesh Ponduru
commit 96bf8d6ea0

View file

@ -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;