Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@conservativecomputer.com>
To: axp-list@redhat.com
Subject: Re: More fun with spinlocks
Date: Wed, 18 Apr 2001 23:29:19 -0400	[thread overview]
Message-ID: <20010418232919.A2324@wumpus.int.den.wayport.net> (raw)
In-Reply-To: <20010414201431.B18054@wumpus.int.den.wayport.net>; from lindahl@conservativecomputer.com on Sat, Apr 14, 2001 at 08:14:31PM -0400

Regarding my spinlock lockup... I posted it to the Linux nfs mailing
list and got a quick bugfix.

>                 spin_lock_irqsave(&xprt_sock_lock, oldflags);
>                 xprt->snd_task = NULL;
>                 if (!rpc_wake_up_next(&xprt->sending) && xprt->stream)
>                         xprt_add_tcp_timer(xprt, RPCXPRT_TIMEOUT);
>                 spin_unlock_irqrestore(&xprt_sock_lock, oldflags);

Trond immediately spotted a thinko in this code: xprt_add_tcp_timer()
sometimes does something that has to wait for the BH, and it shouldn't
be holding the spinlock while waiting.  Fortunately it doesn't need
the spinlock.

He was surprised it hadn't shown up before, as am I; other people are
running 2.2.19 on 2 cpu UP2000s using NFS v3 over tcp, right?

-- g




  reply	other threads:[~2001-04-19  3:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-15  0:14 More fun with spinlocks Greg Lindahl
2001-04-19  3:29 ` Greg Lindahl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-19  5:30 Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox