[Pvfs2-developers] Re: Pvfs2-cvs Digest, Vol 8, Issue 57

Murali Vilayannur vilayann at mcs.anl.gov
Mon Aug 21 14:23:53 EDT 2006


Julian,

> Index: upcall.h
> ===================================================================
> RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/upcall.h,v
> diff -p -u -r1.33.12.1 -r1.33.12.2
> --- upcall.h	18 Aug 2006 05:12:15 -0000	1.33.12.1
> +++ upcall.h	21 Aug 2006 09:29:30 -0000	1.33.12.2
> @@ -203,6 +203,7 @@ typedef struct
>      int32_t type;
>      int32_t __pad1;
>      PVFS_credentials credentials;
> +    int pid;
>
>      union
>      {
>
> Index: waitqueue.c
> ===================================================================
> RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/waitqueue.c,v
> diff -p -u -r1.23.2.3 -r1.23.2.4
> --- waitqueue.c	18 Aug 2006 05:12:15 -0000	1.23.2.3
> +++ waitqueue.c	21 Aug 2006 09:29:30 -0000	1.23.2.4
> @@ -55,6 +55,7 @@ int service_operation(
>  {
>      sigset_t orig_sigset;
>      int ret = 0;
> +    op->upcall.pid = current->pid;
>

Would you want to differentiate between threads and processes?
Storing current->pid will mean you cannot differentiate amongst threads...
just a thought.
Murali


More information about the Pvfs2-developers mailing list