gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] Re: Threads and locks: tgid vs pid


From: Anand Avati
Subject: [Gluster-devel] Re: Threads and locks: tgid vs pid
Date: Thu, 22 Oct 2009 00:12:06 -0500 (CDT)

----- "Corentin Chary" <address@hidden> wrote:

> On Wed, Oct 21, 2009 at 7:11 PM, Corentin Chary
> <address@hidden> wrote:
> > On Wed, Oct 21, 2009 at 3:16 PM, Corentin Chary
> > <address@hidden> wrote:
> >> First, some background:
> >>  - getpid() returns current->tgid which is the pid of the first
> thread
> >>  - gettid() returns current->pid which is the pid of the current
> thread
> >> For all threads, getpid() is the same.
> >>


Corentin,
   Good analysis. We actually do have this corresponding patch in the
glfs patched fuse kernel module to use gettgid() instead of getpid()
to fill up the pid field in the upcalls. In fact moving over to using
lock_owner field has been in the works and currently there is a patch
floating around internally and will be posted on patches.gluster.com
soon. Please check whether the glfs patched fuse kernel module fixes
the sqlite problem for you. It somehow failed to occur to me that your
issue was related to the (previously known) tgid problem.

Thanks!
Avati





reply via email to

[Prev in Thread] Current Thread [Next in Thread]