[OpenAFS-devel] openafs: afs global lock not held [KEYRING]
Miles Davis
miles@CS.Stanford.EDU
Fri, 9 Mar 2007 13:21:59 -0800
On Fri, Mar 09, 2007 at 02:38:07PM -0500, chas williams - CONTRACTOR wrote:
> In message <20070309183018.GB1649@poobah.Stanford.EDU>,Miles Davis writes:
> >kernel BUG at /var/tmp/openafs-1.4.2/src/libafs/MODLOAD-2.6.19-1.2895.fc6-SP/a
> >fs_lock.c:133!
> ...
> >Call Trace:
> > [<f0d02ba6>] afs_FindUser+0x31/0xa2 [openafs]
> > [<f0d2f21f>] afs_pag_destroy+0x10/0x2d [openafs]
> > [<c04c46db>] key_cleanup+0xb7/0xd0
> > [<c04368c7>] run_workqueue+0x97/0xdd
> > [<c0437284>] worker_thread+0xd9/0x10d
> > [<c0439810>] kthread+0xc0/0xec
> > [<c0404c03>] kernel_thread_helper+0x7/0x10
>
> my fault. try this patch. afs_pag_destroy() should take AFS_GLOCK.
> since ->destroy can happen during key_put() and we use key_put()
> under AFS_GLOCK, we need to check to see if we already hold glock.
Thanks -- running on that now, I'll let you know how it goes.
--
// Miles Davis - miles@cs.stanford.edu - http://www.cs.stanford.edu/~miles
// Computer Science Department - Computer Facilities
// Stanford University