OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2790-g5237d3d
Gerrit Code Review
gerrit@openafs.org
Fri, 27 Jul 2012 20:20:21 -0700 (PDT)
The following commit has been merged in the master branch:
commit 5237d3d232f22aaf4f67f3a8727a293f4058a7ae
Author: Andrew Deason <adeason@sinenomine.net>
Date: Thu Jul 26 16:40:03 2012 -0500
LINUX: Hold GLOCK for proc traversal
The functions that traverse unixuser structures for display via /proc
(uu_start et al) call various libafs functions hold and release locks,
etc. To do any of that, we need GLOCK. Amongst other issues, we can
panic if we try to acquire a contested lock without GLOCK, since we
assert glock is held when we sleep for the lock or try to wake other
waiters. The same goes for the legacy CellServDB proc file.
So, hold and release GLOCK as appropriate.
Change-Id: I9ec2051bc5d914521d12a9d20d28da1076c090fc
Reviewed-on: http://gerrit.openafs.org/7885
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/LINUX/osi_proc.c | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
--
OpenAFS Master Repository