From: Al Viro <viro@ftp.linux.org.uk>
To: Bharata B Rao <bharata@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Convert namespace_sem to a mutex
Date: Thu, 17 May 2007 08:22:47 +0100 [thread overview]
Message-ID: <20070517072247.GQ4095@ftp.linux.org.uk> (raw)
In-Reply-To: <20070517071720.GC4462@in.ibm.com>
On Thu, May 17, 2007 at 12:47:20PM +0530, Bharata B Rao wrote:
> Ok, I wasn't aware that this rwsem had many concurrent readers. From whatever
> little I could see (during system boot and during kernel compilation with
> make -j), the number of concurrent readers very rarely touched 3 and was 1
> mostly. May be there are other concurrent readers of this sem. Any idea
> from where they could be coming from ?
Anybody reading from /proc/mounts? You do realize that on systems where
/etc/mtab is a symlink to /proc/mounts every df(1), etc. - anything that
wants to find out all mountpoints - will read through that file?
The whole point is that we need exclusion between those who modify
mount tree *and* between them and anyone who looks at the mount tree.
We don't need any exclusion between several processes that happen to
examine the current mount tree at the same time. And since those
are far more frequent than those who modify the tree...
prev parent reply other threads:[~2007-05-17 7:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 4:50 Convert namespace_sem to a mutex Bharata B Rao
2007-05-17 5:00 ` Satyam Sharma
2007-05-17 5:00 ` Al Viro
2007-05-17 7:17 ` Bharata B Rao
2007-05-17 7:22 ` Al Viro [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=20070517072247.GQ4095@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--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