[OpenAFS-devel] tracking lockers on Solaris

Derrick J Brashear shadow@dementia.org
Thu, 4 Jan 2007 23:37:50 -0500 (EST)


On Thu, 4 Jan 2007, chas williams - CONTRACTOR wrote:

> In message <Pine.GSO.4.61-042.0701042246430.969@johnstown.andrew.cmu.edu>,Derrick J Brashear writes:
>> Right now when we track a locker we track:
>> #if defined(AFS_SUN5_ENV) || defined(AFS_OBSD_ENV)
>> #define MyPidxx (curproc->p_pid)
>> ...
>>
>> However, my suspicion is that the cause of RT #36655 is that another
>> thread in the same pid now has the lock... and we're not tracking that.
>> Any of you poking at Solaris now have thoughts as to what we want to track
>> here?
>
> just a wild guess, but kthread_t has a member:
>
>        kt_did_t        t_did;  /* thread id for kernel debuggers */
>
> so perhaps curthread->t_did?

Tom Keiser suggested t_tid.