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>
Sat, 3 Dec 2011 14:14:32 +0000 (06:14 -0800)
commitd5d2d00a47cf53054bd18d7404be26bea34cba6f
tree6f952d52f935f60ea72aa19c25e3ed0990fa38b1
parent4fd8347e842af61681c1718e456500b92c5b6ea9
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.

Change-Id: I7776b933599ec0488941ccbd9a8e1279f5a552f4
Reviewed-on: http://gerrit.openafs.org/6167
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/fssync-server.c