9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] devmnt crash, fix.
Date: Thu, 23 Aug 2012 09:27:06 -0400	[thread overview]
Message-ID: <f427e6fbd5322834343407f964454d92@kw.quanstro.net> (raw)
In-Reply-To: <ddde182808bdb363b6ed3c1501cbea21@rei2.9hal>

On Thu Aug 23 05:50:45 EDT 2012, cinap_lenrek@gmx.de wrote:
> can you provide the source file, dont have current 9atom iso handy

here's the full kernel source: http://ftp.quanstro.net/other/kernel.mkfs.bz2

> and the stuff i found on the net doesnt seem to cut it. however,
> i found http://www.quanstro.net/plan9/sleepwake.html which at the
> end gives a solution to the problem:

this was actually distilled from the solution that devaoe uses.  the
main simplification is in the case of a note.  which is key in this case,
since it would be very annoying for devmnt to ignore notes.

> that would be relatively easy to apply to devmnt and doesnt have the
> problem of spurious wakeups with abusing up->sleep as rendez.

any time you use sleep/wakeup, you're going to have to deal with
spurious wakeups.  it does not matter which rendezvous structure
you use.  it doesn't matter if it's shared or not.  it's perfectly valid
for sleep to return for no reason at all!

- erik



  reply	other threads:[~2012-08-23 13:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 18:53 erik quanstrom
2012-08-22 19:09 ` cinap_lenrek
2012-08-22 19:12 ` cinap_lenrek
2012-08-22 19:53 ` cinap_lenrek
2012-08-22 22:26   ` erik quanstrom
2012-08-22 23:30 ` cinap_lenrek
2012-08-23  1:53   ` erik quanstrom
2012-08-23  9:47     ` cinap_lenrek
2012-08-23 13:27       ` erik quanstrom [this message]
2012-08-23 15:02         ` cinap_lenrek
2012-08-23 15:39         ` Bakul Shah
2012-08-23 15:48           ` erik quanstrom
2012-08-23 15:53           ` cinap_lenrek
2012-08-23 16:06             ` erik quanstrom
2012-08-23 16:18               ` cinap_lenrek
2012-08-23 16:24                 ` erik quanstrom
2012-08-23 16:47                   ` Charles Forsyth
2012-08-23 17:01                     ` cinap_lenrek
2012-08-23 17:53                     ` Bakul Shah
2012-08-23 18:03                       ` erik quanstrom
     [not found]                   ` <CAOw7k5ii5PoYZnEbDeUuhR9GsgEEGt7i+XTQm7FR9+r=ENg=xw@mail.gmail.c>
2012-08-23 17:09                     ` 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=f427e6fbd5322834343407f964454d92@kw.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).