hid2client-write-lock-20050403
authorTom Keiser <tkeiser@psu.edu>
Sun, 3 Apr 2005 21:09:53 +0000 (21:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 3 Apr 2005 21:09:53 +0000 (21:09 +0000)
commit4bf562265c18433868e3ae28c4b6fb3dd30d57af
tree8f84c2274f01c4f317678a3afcf0d1f6c8dedcf8
parentf9971b7729d31ecb08d22dcd3511f924c6681214
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.
src/viced/afsfileprocs.c
src/viced/host.c