From: "Satyam Sharma" <satyam.sharma@gmail.com>
To: bharata@linux.vnet.ibm.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Convert namespace_sem to a mutex
Date: Thu, 17 May 2007 10:30:29 +0530 [thread overview]
Message-ID: <a781481a0705162200o744e16di5a1b8b6e41826d9d@mail.gmail.com> (raw)
In-Reply-To: <20070517045041.GA4462@in.ibm.com>
On 5/17/07, Bharata B Rao <bharata@linux.vnet.ibm.com> wrote:
> From: Bharata B Rao <bharata@linux.vnet.ibm.com>
>
> namespace_sem is a rwsem. It is acquired as read sem at only one place(used
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Actually, this ...
> by /proc/mounts, /proc/<pid>/mounts and /proc/<pid>/mountstats). In all other
> cases it is acquired as a write sem. So, as there is not more than one reader
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... does not mean this. Multiple threads could be reading mounts or
mountstats, and otoh mount(2) and umount(2) (acquire it as write sem)
could be less frequent?
> for this sem, this can be a generic sem (and not rwsem) and if so it can be
> a mutex.
next prev parent reply other threads:[~2007-05-17 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 4:50 Bharata B Rao
2007-05-17 5:00 ` Satyam Sharma [this message]
2007-05-17 5:00 ` Al Viro
2007-05-17 7:17 ` Bharata B Rao
2007-05-17 7:22 ` Al Viro
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=a781481a0705162200o744e16di5a1b8b6e41826d9d@mail.gmail.com \
--to=satyam.sharma@gmail.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®