9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: quanstro@quanstro.net (erik quanstrom)
Subject: [9fans] Forks of Plan 9 (Was: 9vx instability)
Date: Fri, 25 Nov 2011 09:38:23 -0500	[thread overview]
Message-ID: <89c32557337f83399a5dc818129636ad@chula.quanstro.net> (raw)
In-Reply-To: <bc05a200276effe42bd2937be2739cd0@gmx.de>

On Fri Nov 25 01:47:12 EST 2011, cinap_lenrek at gmx.de wrote:
> drivers should be pretty portable. 
> 
> there are more drastic changes like the eqlock function
> that touched many places. its basicly a normal qlock()
> that can error() out when the process gets a note or
> gets killed.

ha!  i've written this function independently a few times.
and applied it to a few well-chosen places.  i stopped short
because i wondered if postdawn (e.g. after schedinit() is
called), qlock() shouldn't always be an eqlock().

i see this problem most often with networking code.  the
the first reader is interruptable, but readers 2..n are not.

i'd love to hear other opinions on how to solve this problem.

- erik



  parent reply	other threads:[~2011-11-25 14:38 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-21  8:31 [9fans] 9vx instability Anton
2011-11-21  8:39 ` Alexander Kapshuk
2011-11-21  9:08 ` Akshat Kumar
2011-11-21  9:23 ` Anthony Martin
2011-11-21 21:13   ` yy
2011-11-21 11:01 ` yy
2011-11-21 11:17   ` Jens Staal
2011-11-21 11:56     ` yy
2011-11-21 12:14     ` Anton
2011-11-21 19:58       ` Federico G. Benavento
2011-11-21 14:46     ` Sergey Kish
2011-11-21 14:51       ` Sergey Kish
2011-11-21 15:04       ` Jens Staal
2011-11-21 15:49         ` ron minnich
2011-11-21 16:51           ` Charles Forsyth
2011-11-21 17:09             ` Anton
2011-11-21 17:26               ` Jens Staal
2011-11-21 18:24                 ` ron minnich
2011-11-21 18:35                   ` Charles Forsyth
2011-11-21 18:39                     ` ron minnich
2011-11-21 18:49                       ` Francisco J Ballesteros
2011-11-21 19:02                         ` Charles Forsyth
2011-11-21 19:18                           ` andrey mirtchovski
2011-11-21 20:20                 ` Skip Tavakkolian
     [not found]                 ` <CAJSxfmLDrF5b_MxK7GW0jMRuywo88iDGdsH2ZBPbzzcsTQ1i9Q@mail.gmail.c>
2011-11-21 20:32                   ` erik quanstrom
2011-11-21 21:59                     ` Skip Tavakkolian
2011-11-21 22:44                       ` Anton
2011-11-21 23:02                         ` Skip Tavakkolian
2011-11-24 16:40                           ` Yaroslav
2011-11-24 16:56                             ` Francisco J Ballesteros
2011-11-24 17:56                           ` Rudolf Sykora
2011-11-24 18:51                             ` Skip Tavakkolian
2011-11-25  3:30                               ` Lucio De Re
2011-11-25  4:12                                 ` Stanley Lieber
2011-11-25  6:18                                   ` Lucio De Re
     [not found]                 ` <CAJSxfmLDrF5b_MxK7GW0jMRuywo88iDGdsH2ZBPbzzcsTQ1i9Q@>
     [not found]                   ` <CAJSxfm+TZvGdfMGR1smusVAqJK9w=qtUHkXr8OGc5cuZ9VtrdQ@mail.gmail.c>
2011-11-21 23:07                     ` erik quanstrom
2011-11-22 13:56                       ` Charles Forsyth
     [not found]                   ` <CAOEdRO10gkM7SwLRLyscLYENH=BfS8++mFNiRR6VnuAiRpZcag@mail.gmail.c>
2011-11-24 18:25                     ` erik quanstrom
2011-11-24 18:52                       ` Francisco J Ballesteros
2011-11-24 19:01                         ` Stanley Lieber
2011-11-25  3:37                           ` Lucio De Re
2011-11-25  4:21                             ` Stanley Lieber
2011-11-25 19:20                           ` Skip Tavakkolian
2011-11-24 20:39                         ` cinap_lenrek
2011-11-24 20:45                           ` ron minnich
2011-11-24 21:21                             ` Francisco J Ballesteros
2011-11-25  2:02                           ` erik quanstrom
2011-11-26 23:30                             ` Uriel
     [not found]                             ` <CAK=G1Tj4o_ysw_-dh8EQwWHkSSc6v=ga8E4Z331DasO13WNr_A@mail.gmail.c>
2011-11-26 23:40                               ` erik quanstrom
2011-11-26 23:57                                 ` Jacob Todd
2011-11-27  3:27                                   ` Lucio De Re
2011-11-27  4:26                                     ` cinap_lenrek at gmx.de
2011-11-27  4:32                                     ` cinap_lenrek at gmx.de
2011-11-27 14:23                                       ` Dan Cross
2011-11-27 19:09                                         ` Lyndon Nerenberg
2011-11-27 20:44                                           ` Dan Cross
2011-11-27 23:35                                             ` hiro
2011-11-28 12:02                                               ` Dennis den Brok
2011-11-28  1:45                                       ` Anthony Martin
2011-11-27 18:34                                   ` Skip Tavakkolian
2011-11-27 19:01                                     ` Stanley Lieber
2011-11-27 19:39                                     ` Iruatã Souza
2011-11-27  2:40                                 ` Skip Tavakkolian
2011-11-28  1:14                                 ` Andrés Domínguez
2011-11-25  3:46                           ` Lucio De Re
2011-11-25  4:35                             ` Stanley Lieber
2011-11-25  3:33                         ` [9fans] Forks of Plan 9 (Was: 9vx instability) Lucio De Re
2011-11-25  3:54                           ` Stanley Lieber
2011-11-25  4:14                             ` Lucio De Re
2011-11-25  6:05                             ` cinap_lenrek at gmx.de
2011-11-25  6:22                               ` Lucio De Re
2011-11-25  6:45                                 ` cinap_lenrek at gmx.de
2011-11-25  7:52                                   ` Francisco J Ballesteros
2011-11-25  8:06                                     ` Lucio De Re
2011-11-25 10:15                                       ` Francisco J Ballesteros
2011-11-25 13:25                                         ` Lucio De Re
2011-11-25 13:28                                       ` Charles Forsyth
2011-11-25 13:34                                         ` Charles Forsyth
2011-11-25 14:22                                           ` Lucio De Re
2011-11-25 14:26                                         ` Lucio De Re
2011-11-25 14:38                                   ` erik quanstrom [this message]
     [not found]                           ` <CAHfqX-pxHzzHQdf2Rg=Fo+yKOSxYVX7UdU7j4hQJKYS2c7e4tQ@mail.gmail.c>
2011-11-25 13:55                             ` erik quanstrom
2011-11-25 16:56                               ` Stanley Lieber
     [not found]                               ` <CAHfqX-ot8PRUNW5aH+5zKFQXvd_O+otfE4pBS0HfjfD6-6HQSA@mail.gmail.c>
2011-11-25 22:42                                 ` erik quanstrom
2011-11-25 23:21                                   ` Steve Simon
2011-11-25 23:39                                     ` erik quanstrom
2011-11-27 14:52                                       ` Charles Forsyth
2011-11-26  2:09                                 ` erik quanstrom
2011-11-24 20:35                       ` [9fans] 9vx instability ron minnich
     [not found]           ` <CAOw7k5ijEpAGbQgbG94K3bCfOjTLGCKACRZBj60=-ra57FiXAg@mail.gmail.c>
2011-11-21 16:53             ` erik quanstrom
2011-11-27 13:39     ` yy
2011-11-27 13:43       ` Jens Staal

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=89c32557337f83399a5dc818129636ad@chula.quanstro.net \
    --to=quanstro@quanstro.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).