From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] lock diagnostics on Fossil server
Date: Tue, 26 Oct 2010 08:44:37 -0400 [thread overview]
Message-ID: <3722191d11202554e3bed26da57f5062@plug.quanstro.net> (raw)
In-Reply-To: <e6955ff428124877861dddfe0be6fd6e@gmx.de>
On Mon Oct 25 22:03:53 EDT 2010, cinap_lenrek@gmx.de wrote:
> hm... wouldnt it just crash if mh->mount is nil?
>
perhaps you are reading the diff backwards? it used to
crash when mh->mount was nil. leading to a lock loop.
i added the test to see that mh->mount != nil after the
rlock on mh->lock is acquired. otherwise, there is a race
with unmount which can make mh->mount nil while we're running.
our newer faster processors with more cores were making
this event likely enough that a few receipies would crash
the machine within 5 minutes.
- erik
---
/n/sources/plan9//sys/src/9/port/chan.c:1012,1018 - chan.c:1012,1020
/*
* mh->mount->to == c, so start at mh->mount->next
*/
+ f = nil;
rlock(&mh->lock);
+ if(mh->mount)
for(f = mh->mount->next; f; f = f->next)
if((wq = ewalk(f->to, nil, names+nhave, ntry)) != nil)
break;
next prev parent reply other threads:[~2010-10-26 12:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 12:20 Lucio De Re
2010-10-25 13:20 ` erik quanstrom
2010-10-25 14:35 ` Lucio De Re
2010-10-26 2:01 ` cinap_lenrek
2010-10-26 12:44 ` erik quanstrom [this message]
2010-10-26 13:45 ` Lucio De Re
2010-10-26 14:31 ` erik quanstrom
2010-10-26 14:28 ` Russ Cox
2010-10-26 14:48 ` erik quanstrom
2010-10-26 16:27 ` Lucio De Re
2010-10-26 17:01 ` erik quanstrom
2010-10-27 3:03 ` lucio
2010-10-27 4:14 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3722191d11202554e3bed26da57f5062@plug.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).