netdev
[Top] [All Lists]

Re: [IPV4/IPV6] Replace spin_lock_irq with spin_lock_bh

To: herbert@xxxxxxxxxxxxxxxxxxx
Subject: Re: [IPV4/IPV6] Replace spin_lock_irq with spin_lock_bh
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Thu, 02 Jun 2005 22:10:26 -0700 (PDT)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050602094404.GA10316@xxxxxxxxxxxxxxxxxxx>
References: <20050602094404.GA10316@xxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Jun 2005 19:44:04 +1000

> In light of my recent patch to net/ipv4/udp.c that replaced the
> spin_lock_irq calls on the receive queue lock with spin_lock_bh,
> here is a similar patch for all other occurences of spin_lock_irq
> on receive/error queue locks in IPv4 and IPv6.
> 
> In these stacks, we know that they can only be entered from user
> or softirq context.  Therefore it's safe to disable BH only.
> 
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> 

Applied to net-2.6.13, thanks Herbert.

<Prev in Thread] Current Thread [Next in Thread>