ubik: cleanup DB lock usage in SDISK_SendFile
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 29 Jan 2011 17:48:02 +0000 (12:48 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sun, 6 Mar 2011 18:08:55 +0000 (10:08 -0800)
commitad63745f357e377c613881fa3470b85d4d36fe36
tree761119e8dbdf126d292a0d4c5e7fdf3753022145
parent1ff74829f13c127abd5cd8e70f18bcfd33f240ff
ubik: cleanup DB lock usage in SDISK_SendFile

Some failure paths can return from SDISK_SendFile with the
database lock still held.  Other failure paths will cause
setlabel to be called without holding the lock.

Rework the failure paths so we always release the DB lock before
returning, and always hold it when calling setlabel.

Change-Id: I4cf98ecc9874110273e2cb4f94c37bdb9b43f0a2
Reviewed-on: http://gerrit.openafs.org/4151
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ubik/remote.c