mbox series

[net,v2,0/3] mISDN: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()

Message ID 20221212084139.3277913-1-yangyingliang@huawei.com (mailing list archive)
Headers show
Series mISDN: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() | expand

Message

Yang Yingliang Dec. 12, 2022, 8:41 a.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 14, 2022, 4 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 12 Dec 2022 16:41:36 +0800 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net,v2,1/3] mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
    https://git.kernel.org/netdev/net/c/ddc9648db162
  - [net,v2,2/3] mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
    https://git.kernel.org/netdev/net/c/f0f596bd75a9
  - [net,v2,3/3] mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
    https://git.kernel.org/netdev/net/c/1232946cf522

You are awesome, thank you!