From patchwork Mon Dec 12 08:41:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 13070826 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 1CFBAC4332F for ; Mon, 12 Dec 2022 08:44:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbiLLIoQ (ORCPT ); Mon, 12 Dec 2022 03:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbiLLIoP (ORCPT ); Mon, 12 Dec 2022 03:44:15 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDF04E003 for ; Mon, 12 Dec 2022 00:44:13 -0800 (PST) Received: from dggpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NVw7R74tMzJpKD; Mon, 12 Dec 2022 16:40:35 +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.34; Mon, 12 Dec 2022 16:44:11 +0800 From: Yang Yingliang To: CC: , , , , Yang Yingliang Subject: [PATCH net v2 0/3] mISDN: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() Date: Mon, 12 Dec 2022 16:41:36 +0800 Message-ID: <20221212084139.3277913-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: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org It is not allowed to call kfree_skb() or consume_skb() from hardware interrupt context or with hardware interrupts being disabled. This pachset try to avoid calling dev_kfree_skb/kfree_skb()() under spin_lock_irqsave(). v1 -> v2: Use skb_queue_splice_init() to move the 'squeue' to a free queue, then purge it. Yang Yingliang (3): mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() drivers/isdn/hardware/mISDN/hfcmulti.c | 19 +++++++++++++------ drivers/isdn/hardware/mISDN/hfcpci.c | 13 +++++++++---- drivers/isdn/hardware/mISDN/hfcsusb.c | 12 ++++++++---- 3 files changed, 30 insertions(+), 14 deletions(-)