Re: Convert namespace_sem to a mutex

2007-05-17 Thread Al Viro
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 > m

Re: Convert namespace_sem to a mutex

2007-05-17 Thread Bharata B Rao
On Thu, May 17, 2007 at 06:00:46AM +0100, Al Viro wrote: > On Thu, May 17, 2007 at 10:20:41AM +0530, Bharata B Rao wrote: > > From: Bharata B Rao <[EMAIL PROTECTED]> > > > > namespace_sem is a rwsem. It is acquired as read sem at only one place(used > > by /proc/mounts, /proc//mounts and /proc//mo

Re: Convert namespace_sem to a mutex

2007-05-16 Thread Satyam Sharma
On 5/17/07, Bharata B Rao <[EMAIL PROTECTED]> wrote: From: Bharata B Rao <[EMAIL PROTECTED]> namespace_sem is a rwsem. It is acquired as read sem at only one place(used ^^ Actually, this ... by /proc/mounts, /proc//mounts a

Re: Convert namespace_sem to a mutex

2007-05-16 Thread Al Viro
On Thu, May 17, 2007 at 10:20:41AM +0530, Bharata B Rao wrote: > From: Bharata B Rao <[EMAIL PROTECTED]> > > namespace_sem is a rwsem. It is acquired as read sem at only one place(used > by /proc/mounts, /proc//mounts and /proc//mountstats). In all other > cases it is acquired as a write sem. So,