From patchwork Wed Dec 7 06:28:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 632202 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 0ABDFC4708E for ; Wed, 7 Dec 2022 06:31:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiLGGbM (ORCPT ); Wed, 7 Dec 2022 01:31:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiLGGbJ (ORCPT ); Wed, 7 Dec 2022 01:31:09 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BE695986A for ; Tue, 6 Dec 2022 22:31:07 -0800 (PST) Received: from dggpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NRnTN44yzzJqJL; Wed, 7 Dec 2022 14:30:16 +0800 (CST) Received: from huawei.com (10.175.103.91) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 7 Dec 2022 14:30:35 +0800 From: Yang Yingliang To: , CC: , Subject: [PATCH v2 0/3] wifi: rtlwifi: don't call kfree_skb() under spin_lock_irqsave() Date: Wed, 7 Dec 2022 14:28:20 +0800 Message-ID: <20221207062823.3474551-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is not allowed to call kfree_skb() from hardware interrupt context or with interrupts being disabled. This patchset is trying to add all skb to a free list, then free them after spin_unlock_irqrestore() at once. v1 -> v2: change subject prefix to "wifi: rtlwifi: ..." Yang Yingliang (3): wifi: rtlwifi: rtl8821ae: don't call kfree_skb() under spin_lock_irqsave() wifi: rtlwifi: rtl8188ee: don't call kfree_skb() under spin_lock_irqsave() wifi: rtlwifi: rtl8723be: don't call kfree_skb() under spin_lock_irqsave() drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c | 6 +++++- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 6 +++++- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-)