]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-hid2client-write-lock-20050403
authorTom Keiser <tkeiser@psu.edu>
Sun, 3 Apr 2005 21:19:22 +0000 (21:19 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 3 Apr 2005 21:19:22 +0000 (21:19 +0000)
commitf282977101d5e50b8ac8b4a0f465e66ab57ec0b4
treeb1f7363d232a22617344d80361d7e8b81e27a98e
parentacac02cf678b99e52baa4ef71c66b2cc6f06ff6f
STABLE14-hid2client-write-lock-20050403

FIXES 17867

h_ID2Client currently returns a client struct with a shared lock. The
only caller of h_ID2Client (SRXAFS_FlushCPS) immediately calls
BoostSharedLock. This patch just goes ahead and makes h_ID2Client return
it with the write lock so we don't enter the Lock struct mutex multiple
times in a row. This also happens to remove the last reference to
BoostSharedLock in the tree.

(cherry picked from commit 4bf562265c18433868e3ae28c4b6fb3dd30d57af)
src/viced/afsfileprocs.c
src/viced/host.c