Windows: Track file server lock count
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 19 Aug 2011 01:53:45 +0000 (21:53 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 23 Aug 2011 19:12:45 +0000 (12:12 -0700)
commita6138b412d3b4197b22ca7fb63d8cdc9671ef67c
treeb40ed3ba21e5ec0612a2b06bb70ab033733e4c2c
parentae87a1aff2a99841701c1e8a7a0dbb699ea14102
Windows: Track file server lock count

The fsLockCount field is the lock count reported by the
file server as part of the status info.  Lock acquisition
and releasing does not obtain new status info but we can
estimate what the lock count is by tracking it ourselves
for each of our successful RXAFS_SetLock and RXAFS_ReleaseLock
RPCs and failed RXAFS_ExtendLock RPCs.

Change-Id: Ib5dc5853d82a1292e848bf67d4d9932485177d91
Reviewed-on: http://gerrit.openafs.org/5298
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_scache.h
src/WINNT/afsd/cm_vnodeops.c