Re: [PATCH] Simplify /proc//exe symlink code

2007-07-16 Thread Matt Helsley
On Fri, 2007-07-13 at 03:07 +0100, Al Viro wrote: > On Thu, Jul 12, 2007 at 07:00:12PM -0700, Matt Helsley wrote: > > This patch avoids holding the mmap semaphore while walking VMAs in response > > to > > programs which read or follow the /proc//exe symlink. This also > > allows > > us to merge

Re: [PATCH] Simplify /proc//exe symlink code

2007-07-13 Thread Matt Helsley
On Thu, 2007-07-12 at 19:21 -0700, Andrew Morton wrote: > On Thu, 12 Jul 2007 19:00:12 -0700 Matt Helsley <[EMAIL PROTECTED]> wrote: > > > This patch avoids holding the mmap semaphore while walking VMAs in response > > to > > programs which read or follow the /proc//exe symlink. This also > >

Re: [PATCH] Simplify /proc//exe symlink code

2007-07-12 Thread Andrew Morton
On Thu, 12 Jul 2007 19:00:12 -0700 Matt Helsley <[EMAIL PROTECTED]> wrote: > This patch avoids holding the mmap semaphore while walking VMAs in response to > programs which read or follow the /proc//exe symlink. This also > allows > us to merge mmu and nommu proc_exe_link() functions. The costs

Re: [PATCH] Simplify /proc//exe symlink code

2007-07-12 Thread Al Viro
On Thu, Jul 12, 2007 at 07:00:12PM -0700, Matt Helsley wrote: > This patch avoids holding the mmap semaphore while walking VMAs in response to > programs which read or follow the /proc//exe symlink. This also > allows > us to merge mmu and nommu proc_exe_link() functions. The costs are holding

[PATCH] Simplify /proc//exe symlink code

2007-07-12 Thread Matt Helsley
This patch avoids holding the mmap semaphore while walking VMAs in response to programs which read or follow the /proc//exe symlink. This also allows us to merge mmu and nommu proc_exe_link() functions. The costs are holding the task lock, a separate reference to the executable file stored in the