From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDD20C433EF for ; Thu, 19 May 2022 04:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233345AbiESEUV (ORCPT ); Thu, 19 May 2022 00:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232796AbiESEUT (ORCPT ); Thu, 19 May 2022 00:20:19 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA49B9859D for ; Wed, 18 May 2022 21:20:13 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4L3c7q3KvvzhZFt; Thu, 19 May 2022 12:19:35 +0800 (CST) Received: from [10.174.179.200] (10.174.179.200) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 19 May 2022 12:20:11 +0800 Subject: Re: [PATCH net-next v2] net: wwan: t7xx: fix GFP_KERNEL usage in spin_lock context To: =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= CC: , , , , , , , , , , , , , Netdev References: <20220517064821.3966990-1-william.xuanziyang@huawei.com> From: "Ziyang Xuan (William)" Message-ID: <4e6405fa-2939-20ea-dcec-5041c5e1f2f3@huawei.com> Date: Thu, 19 May 2022 12:20:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.200] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > On Tue, 17 May 2022, Ziyang Xuan wrote: > >> t7xx_cldma_clear_rxq() call t7xx_cldma_alloc_and_map_skb() in spin_lock >> context, But __dev_alloc_skb() in t7xx_cldma_alloc_and_map_skb() uses >> GFP_KERNEL, that will introduce scheduling factor in spin_lock context. >> >> Because t7xx_cldma_clear_rxq() is called after stopping CLDMA, so we can >> remove the spin_lock from t7xx_cldma_clear_rxq(). >> > > Perhaps Suggested-by: ... would have been appropriate too. Yes£¬I will send the v3 patch. > >> Fixes: 39d439047f1d ("net: wwan: t7xx: Add control DMA interface") >> Signed-off-by: Ziyang Xuan >