netdev
[Top] [All Lists]

Re: [PATCH] convert ircomm to seq_file interface

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: [PATCH] convert ircomm to seq_file interface
From: Jean Tourrilhes <jt@xxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Aug 2003 09:48:53 -0700
Address: HP Labs, 1U-17, 1501 Page Mill road, Palo Alto, CA 94304, USA.
Cc: shemminger@xxxxxxxx, irda-users@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
E-mail: jt@hpl.hp.com
In-reply-to: <20030819212009.36a8dc03.davem@redhat.com>
Organisation: HP Labs Palo Alto
References: <20030818123142.6369fbff.shemminger@osdl.org> <20030818200923.GC6577@bougret.hpl.hp.com> <20030819212009.36a8dc03.davem@redhat.com>
Reply-to: jt@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Tue, Aug 19, 2003 at 09:20:09PM -0700, David S. Miller wrote:
> On Mon, 18 Aug 2003 13:09:23 -0700
> Jean Tourrilhes <jt@xxxxxxxxxxxxxxxxxx> wrote:
> 
> > On Mon, Aug 18, 2003 at 12:31:42PM -0700, Stephen Hemminger wrote:
> > > Convert ircomm /proc interface to seq_file.
> > > 
> > > Note: don't need spin_lock_irq because list is not ever locked
> > > from inside interrupt context.
> > 
> >     I don't agree with this change.
> 
> I'll let you guys work this one out.  Let me know when a
> final version of the patch is ready.

        Oh, that's fairly simple. You just need to revert the
spin_lock() to a spin_lock_irqsave().
        By the way, I would prefer Stephen to not rock the boat when
it come to locking, I know that the locking of the IrDA stack is still
"fragile" in areas.
        Have fun...

        Jean

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