]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: attach2 must always return with VOL_LOCK held
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 28 Oct 2010 04:37:03 +0000 (00:37 -0400)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Nov 2010 10:47:14 +0000 (03:47 -0700)
commitd45097f046aa62c9d479fda39927c450e6fdd551
tree8d881d495e6b0d312346d8bc6c2260b3e7751245
parenta6a318c12cda5b7d8309a64f12ecab6bd879d8e8
vol: attach2 must always return with VOL_LOCK held

attach2() is required to return with the VOL_LOCK held
even though it is called without it.  This must be true
for error conditions as well.  Not all error paths are
obtaining the VOL_LOCK before returning.  Add out paths for
lock held and lock unheld error cases.

(cherry picked from commit 58901738ad6280d0777dd8e77f8c09cc45da04bc)
Reviewed-on: http://gerrit.openafs.org/3177
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Change-Id: I6918987cd784e4e550c2525b537bda290dbacae8
Reviewed-on: http://gerrit.openafs.org/3221
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/libafsrpc/afsrpc.def
src/vol/volume.c