Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-13 Thread Serge E. Hallyn
Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > On 12 December 2007 21:42:25 Serge E. Hallyn wrote: > > Ok sorry - by letting this thread sit a few days I lost track of where > > we were. > > > > I see now, so you're saying fl_pid for nfs is not in fact a task pid. > > It's a magically derived unique

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-13 Thread Vitaliy Gusev
On 12 December 2007 21:42:25 Serge E. Hallyn wrote: > Ok sorry - by letting this thread sit a few days I lost track of where > we were. > > I see now, so you're saying fl_pid for nfs is not in fact a task pid. > It's a magically derived unique id. (And you say it is unique across > all the nfs cli

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-12 Thread Serge E. Hallyn
Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > On 12 December 2007 20:31:15 Serge E. Hallyn wrote: > > Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > > > Hello > > > > > > On 6 December 2007 18:51:30 Serge E. Hallyn wrote: > > > > > fl_pid is used by nfs, fuse and gfs2. For instance nfs keeps in > > >

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-12 Thread Vitaliy Gusev
On 12 December 2007 20:31:15 Serge E. Hallyn wrote: > Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > > Hello > > > > On 6 December 2007 18:51:30 Serge E. Hallyn wrote: > > > > fl_pid is used by nfs, fuse and gfs2. For instance nfs keeps in > > > > fl_pid some unique id to identify locking process be

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-12 Thread Serge E. Hallyn
Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > Hello > > On 6 December 2007 18:51:30 Serge E. Hallyn wrote: > > > fl_pid is used by nfs, fuse and gfs2. For instance nfs keeps in fl_pid > > > some unique id to identify locking process between hosts - it is not a > > > process pid. > > > > Ok, but so

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-12 Thread Vitaliy Gusev
Hello On 6 December 2007 18:51:30 Serge E. Hallyn wrote: > > fl_pid is used by nfs, fuse and gfs2. For instance nfs keeps in fl_pid > > some unique id to identify locking process between hosts - it is not a > > process pid. > > Ok, but so the struct user_flock->fl_pid is being set to the task's >

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-08 Thread Brad Boyer
On Thu, Dec 06, 2007 at 09:51:30AM -0600, Serge E. Hallyn wrote: > Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > > fl_pid is used by nfs, fuse and gfs2. For instance nfs keeps in fl_pid > > some > > unique id to identify locking process between hosts - it is not a process > > pid. > > Ok, but s

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-07 Thread Serge E. Hallyn
Quoting J. Bruce Fields ([EMAIL PROTECTED]): > On Thu, Dec 06, 2007 at 03:57:29PM +0300, Vitaliy Gusev wrote: > > I am working on pid namespaces vs locks interaction and want to evaluate > > the > > idea. > > fcntl(F_GETLK,..) can return pid of process for not current pid namespace > > (if > >

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-06 Thread J. Bruce Fields
On Thu, Dec 06, 2007 at 03:57:29PM +0300, Vitaliy Gusev wrote: > I am working on pid namespaces vs locks interaction and want to evaluate the > idea. > fcntl(F_GETLK,..) can return pid of process for not current pid namespace (if > process is belonged to the several namespaces). It is true also f

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-06 Thread Serge E. Hallyn
Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > On 6 December 2007 17:53:40 Serge E. Hallyn wrote: > > Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > > > Hello! > > > > > > I am working on pid namespaces vs locks interaction and want to evaluate > > > the idea. > > > fcntl(F_GETLK,..) can return pid of

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-06 Thread Vitaliy Gusev
On 6 December 2007 17:53:40 Serge E. Hallyn wrote: > Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > > Hello! > > > > I am working on pid namespaces vs locks interaction and want to evaluate > > the idea. > > fcntl(F_GETLK,..) can return pid of process for not current pid namespace > > (if process is

Re: [RFC][PATCH] Pid namespaces vs locks interaction

2007-12-06 Thread Serge E. Hallyn
Quoting Vitaliy Gusev ([EMAIL PROTECTED]): > Hello! > > I am working on pid namespaces vs locks interaction and want to evaluate the > idea. > fcntl(F_GETLK,..) can return pid of process for not current pid namespace (if > process is belonged to the several namespaces). It is true also for pids

[RFC][PATCH] Pid namespaces vs locks interaction

2007-12-06 Thread Vitaliy Gusev
Hello! I am working on pid namespaces vs locks interaction and want to evaluate the idea. fcntl(F_GETLK,..) can return pid of process for not current pid namespace (if process is belonged to the several namespaces). It is true also for pids in /proc/locks. So correct behavior is saving pointer