All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: "홍신 shin hong" <hongshin@gmail.com>
Cc: linux-mtd Mailing List <linux-mtd@lists.infradead.org>
Subject: Re: report a suspected bug in ubifs
Date: Mon, 04 May 2009 11:11:44 +0300	[thread overview]
Message-ID: <49FEA340.7070506@nokia.com> (raw)
In-Reply-To: <2014bcab0905040059r5ca9b8e1o5bf572ee354f7162@mail.gmail.com>

홍신 shin hong wrote:
> Thank you for the reply.
> 
> all accesses to 'wbuf->used' is synchronized by 'io_mutex'
> and its updates(writing accesses) are synchronized by 'wbuf_lock'
> like readers/writer lock ?

Yes, it is like a readers/writers lock.

To read from the wbuf, all that is needed is the spin lock.

To append to the wbuf, without otherwise changing it, all that is needed
is the mutex (and then the spin lock to record that the append happened).

To change the wbuf, the mutex *and* the spin lock are needed.

           reply	other threads:[~2009-05-04  8:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <2014bcab0905040059r5ca9b8e1o5bf572ee354f7162@mail.gmail.com>]

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=49FEA340.7070506@nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=hongshin@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.