public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Tejun Heo <htejun@gmail.com>
Cc: ntl@pobox.com, viro@ftp.linux.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] big reader semaphore take#2
Date: Sat, 05 Nov 2005 12:29:31 +1100	[thread overview]
Message-ID: <436C0AFB.4050102@yahoo.com.au> (raw)
In-Reply-To: <436C0859.6050806@gmail.com>

Tejun Heo wrote:
> Nick Piggin wrote:

>> The upshot of that would be that you could build the whole thing
>> from rwsem infrastructure and have basically zero other locking
>> mechanisms or complexity that you don't want in a synchronisation
>> primitive.
>>
> 
> To certain extent, I do agree with you - it's safer/simpler..., but on 
> the other hand, new brsem isn't that more complex and would perform 
> almost identically without extra semantical baggage.  So, I thought it 
> might be worth a bit more effort.
> 

I would do it thisway if possible, yes.

> Hmm... So, array of rwsem's, it should be.
> 

First implementation would be per-cpu just rwsems. A second patch
to make it just an array rwsem->count's plus a shared queue may
be in order - OTOH everyone does their own rwsems, so this will be
a bit of a headache.

I forget - are you just planning to use one global brsem? In this
case the size issue wouldn't be a pressing one.

-- 
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com 

      reply	other threads:[~2005-11-05  1:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 10:44 [PATCH RFC] big reader semaphore take#2 Tejun Heo
2005-10-28 11:06 ` Nick Piggin
2005-11-04 15:09 ` Tejun Heo
2005-11-05  0:14   ` Nick Piggin
2005-11-05  1:18     ` Tejun Heo
2005-11-05  1:29       ` Nick Piggin [this message]

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=436C0AFB.4050102@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=htejun@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ntl@pobox.com \
    --cc=viro@ftp.linux.org.uk \
    /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