Re: [PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Jeremy Fitzhardinge
Herbert Xu wrote: > You don't need to disable BH in netif_poll since it's always called > with BH disabled. > Ah, yes, you mentioned that before. I'll fix it up. J - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Herbert Xu
Jeremy Fitzhardinge <[EMAIL PROTECTED]> wrote: > > @@ -1212,10 +1212,10 @@ static int netif_poll(struct net_device >int pages_flipped = 0; >int err; > > - spin_lock(>rx_lock); > + spin_lock_bh(>rx_lock); > >if (unlikely(!netfront_carrier_ok(np))) { > -

[PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Jeremy Fitzhardinge
netfront contains two locking problems found by lockdep: 1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock. This means that in normal use, tx_lock may be taken by an interrupt routine while rx_lock is held. However, netif_disconnect_backend takes them in the order

[PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Jeremy Fitzhardinge
netfront contains two locking problems found by lockdep: 1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock. This means that in normal use, tx_lock may be taken by an interrupt routine while rx_lock is held. However, netif_disconnect_backend takes them in the order

Re: [PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Herbert Xu
Jeremy Fitzhardinge [EMAIL PROTECTED] wrote: @@ -1212,10 +1212,10 @@ static int netif_poll(struct net_device int pages_flipped = 0; int err; - spin_lock(np-rx_lock); + spin_lock_bh(np-rx_lock); if (unlikely(!netfront_carrier_ok(np))) { -

Re: [PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Jeremy Fitzhardinge
Herbert Xu wrote: You don't need to disable BH in netif_poll since it's always called with BH disabled. Ah, yes, you mentioned that before. I'll fix it up. J - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More