]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-viced-cbstuff-20071205
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 5 Dec 2007 20:39:49 +0000 (20:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 5 Dec 2007 20:39:49 +0000 (20:39 +0000)
LICENSE IPL10

Keep track of AddCallBack calls in cbstuff.

Increment cbstuff.DeleteCallBacks after holding H_LOCK

(cherry picked from commit 974ad01826f39c817834c6377cf2872177fa7031)

src/viced/callback.c

index a16457cc500b365c2d44788f60bbc4187e54ba29..076ba08f9e40ac70983c08d84b24d23d61c31319 100644 (file)
@@ -640,6 +640,8 @@ AddCallBack1_r(struct host *host, AFSFid * fid, afs_uint32 * thead, int type,
     struct CallBack *newcb = 0;
     int safety;
 
+    cbstuff.AddCallBacks++;
+
     host->Console |= 2;
 
     /* allocate these guys first, since we can't call the allocator with
@@ -963,9 +965,9 @@ DeleteCallBack(struct host *host, AFSFid * fid)
     register afs_uint32 *pcb;
     char hoststr[16];
 
+    H_LOCK;
     cbstuff.DeleteCallBacks++;
 
-    H_LOCK;
     h_Lock_r(host);
     fe = FindFE(fid);
     if (!fe) {