]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DAFS: Avoid unnecessary preattach on FSYNC_VOL_ON
authorAndrew Deason <adeason@sinenomine.net>
Wed, 30 Nov 2011 23:35:56 +0000 (17:35 -0600)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 11:55:11 +0000 (03:55 -0800)
commit4868585c2e7bf2aeddef025aa3378ed4cf8efcfd
tree5ef0d95cfc1e26faaf6edf8a762fd625a410aa4b
parentc5f26e035b09c3bd8352f7b435b6ab3470e047c8
DAFS: Avoid unnecessary preattach on FSYNC_VOL_ON

FSYNC_VOL_ON/FSYNC_VOL_ATTACH can be called to "online" a volume that
was actually kept online for the duration of the volume operation.
Avoid calling VPreAttachVolumeByVp_r for such a volume if it's already
attached, in order to avoid an unnecessary log message and to save a
tiny bit of processing.

Reviewed-on: http://gerrit.openafs.org/6167
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit d5d2d00a47cf53054bd18d7404be26bea34cba6f)

Change-Id: I2a7f4b214176570e787978dbe0aa2eb8dc57730f
Reviewed-on: http://gerrit.openafs.org/6323
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/vol/fssync-server.c