9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bruce Ellis <bruce.ellis@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] clunk clunk
Date: Wed,  4 Jan 2006 07:07:08 +1100	[thread overview]
Message-ID: <775b8d190601031207n5b2eaec3y1ca22e4c0a4bf960@mail.gmail.com> (raw)
In-Reply-To: <ee9e417a0601031146m28bb5bf1n5f66d579706cf12d@mail.gmail.com>

Bullshit.  It happens all the time.  Rio+Plumber is a simple example.

brucee

On 1/4/06, Russ Cox <rsc@swtch.com> wrote:
> > When a process exits it closes it's fds, so it sends a
> > Tclunk ...but if the process it sends it to is exiting it can't
> > respond.   It's in the same position.  Call it "deadly embrace".
> >
> > Think about it.
>
> This only happens if two file servers have mounted each other,
> which creates many other possibilities for deadlock too.
>
> Usually file servers are careful to dissociate from the name
> spaces in which they mount themselves, so that they don't
> access their own files and cause ref count problems.
> This has the added effect that future servers that get mounted
> into the name space don't end up mounted in the first server's
> name space.  So these kind of loops basically don't happen.
>
> What processes do you have running that are in this deadly
> embrace?  Standard programs or ones you wrote?  If the
> former, which ones?  Are you sure they're in Tclunk?
>
> There is one exception in Plan 9: upas/fs and plumber have
> each other mounted, so that plumber can send around
> references to upas/fs's files.  It sometimes happens that
> they end up sticking around just because of the circular
> ref count, if somehow the session ends without a hangup
> note being sent to the note group.  Even in this case, though,
> the Tclunk thing doesn't happen, because plumber doesn't
> keep any of upas/fs's files open.  It could possibly happen
> if the plumber managed to get killed in the middle of walking
> one of the upas paths during a stat, but that wouldn't happen
> hundreds of times on a single system.
>
> Instead of making us read through the Inferno code,
> why not tell us what you did to fix it?  A separate kproc
> to run all clunks?  Close all the non-devmnt chans first?
>
> Russ
>


  reply	other threads:[~2006-01-03 20:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03 19:28 Bruce Ellis
2006-01-03 19:38 ` Sascha Retzki
2006-01-03 19:46 ` Russ Cox
2006-01-03 20:07   ` Bruce Ellis [this message]
2006-01-03 20:24     ` Russ Cox
2006-01-03 21:33       ` Bruce Ellis
2006-01-03 21:47         ` jmk
2006-01-03 22:09           ` Bruce Ellis
2006-01-03 22:14             ` jmk
2006-01-03 22:16               ` Bruce Ellis
2006-01-03 22:36             ` Russ Cox
2006-01-03 22:45               ` Bruce Ellis
2006-01-04 12:15                 ` Russ Cox
2006-01-04 12:25                   ` Bruce Ellis
2006-01-04 15:36                     ` Ronald G Minnich
2006-01-04 15:41                       ` Bruce Ellis
2006-01-05  9:36                     ` Francisco J Ballesteros
2006-01-05  9:39                       ` Russ Cox
2006-01-05 12:00                         ` Bruce Ellis
2006-01-05 12:36                           ` Charles Forsyth
2006-01-05 15:26                           ` Francisco J Ballesteros
2006-01-06 21:34                         ` Dave Eckhardt
2006-01-06 21:57                           ` Bruce Ellis
2006-01-06 22:00                           ` Francisco J Ballesteros

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=775b8d190601031207n5b2eaec3y1ca22e4c0a4bf960@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).