From: Greg Lindahl <lindahl@conservativecomputer.com>
To: axp-list@redhat.com
Subject: Re: More fun with spinlocks
Date: Thu, 19 Apr 2001 01:30:40 -0400 [thread overview]
Message-ID: <20010419013040.A2454@wumpus.int.den.wayport.net> (raw)
I got a request to post the exact patch from trond. This was tested
by Craig Tierney and apparently resolved the problem.
----------
Urgh. I see what's going wrong: it's the mod_timer() thing in
xprt_add_tcp_timer() that's waiting on the bottom half to finish. Odd
that's never surfaced before.
Does the following patch fix it?
Cheers,
Trond
--- net/sunrpc/xprt.c.orig Sun Mar 25 18:37:42 2001
+++ net/sunrpc/xprt.c Wed Apr 18 11:10:21 2001
@@ -1145,9 +1145,11 @@
unsigned long oldflags;
spin_lock_irqsave(&xprt_sock_lock, oldflags);
xprt->snd_task = NULL;
- if (!rpc_wake_up_next(&xprt->sending) && xprt->stream)
+ if (!rpc_wake_up_next(&xprt->sending) && xprt->stream) {
+ spin_unlock_irqrestore(&xprt_sock_lock, oldflags);
xprt_add_tcp_timer(xprt, RPCXPRT_TIMEOUT);
- spin_unlock_irqrestore(&xprt_sock_lock, oldflags);
+ } else
+ spin_unlock_irqrestore(&xprt_sock_lock, oldflags);
}
}
next reply other threads:[~2001-04-19 5:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-19 5:30 Greg Lindahl [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-15 0:14 More fun with spinlocks Greg Lindahl
2001-04-19 3:29 ` 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