afs: Use common cleanup code for lockctl EINVAL
authorAndrew Deason <adeason@sinenomine.net>
Tue, 2 Oct 2012 20:04:47 +0000 (15:04 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 3 Oct 2012 03:13:25 +0000 (20:13 -0700)
commiteae608d99a5ae94624200f91af6ed818c9f6612b
tree69c3b98f771fc39f51fb312cd6ca79203cee5c41
parent5289b5bb81a90bfacbb9841ee6357c6f72358a6e
afs: Use common cleanup code for lockctl EINVAL

afs_lockctl has common cleanup code in the 'done' label. Use it here,
instead of trying to duplicate it.

Currently this code path appears to not be dropping the discon lock,
which this rectifies.

Change-Id: I136a78bc3235454db7e3d69bb79b0061cfcab265
Reviewed-on: http://gerrit.openafs.org/8196
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/VNOPS/afs_vnop_flock.c