[OpenAFS] Linux 2.6 support
Horst Birthelmer
horst@riback.net
Wed, 9 Jun 2004 13:39:42 +0200
On Wednesday, June 9, 2004, at 01:03 PM, Miroslav Ruda wrote:
> Horst Birthelmer wrote:
>> On Wednesday, June 9, 2004, at 11:46 AM, Miroslav Ruda wrote:
>>> Horst Birthelmer wrote:
>>>
>>>> That's the most suspicious line to me for those symptoms. The rest
>>>> of it is starting the deamon itself (actually it can get stuck
>>>> there, too, but I don't think that'll be the case).
>>>> Could you enter some debug outputs there?? or don't you want to
>>>> alter the code??
>>>
>>>
>>> I'm ready to debug it. Do you refere to
>>> src/libafs/afs_call.c:afsd_thread()
>> yes
>> The line I was talking about is around 245. You should find there
>> the "while" (while (afs_initState < AFSOP_START_BKG)) which waits for
>> the rest of the client.
>> Put some debug outputs there and take a look how far it gets...
>
> You are right, it's blocked in this while loop:
>
> while (afs_initState < AFSOP_START_BKG) {
> printk("while: %d\n",afs_initState);
> afs_osi_Sleep(&afs_initState);
> }
>
> afs_initState was 0 and then afs_osi_Sleep(&afs_initState) is blocked
> forever.
>
So the real problem is now, why doesn't afs_initState never becomes
AFSOP_START_BKG or above.
Horst