mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
viced-cbstuff-20071205
LICENSE IPL10 Keep track of AddCallBack calls in cbstuff. Increment cbstuff.DeleteCallBacks after holding H_LOCK
This commit is contained in:
parent
946f416577
commit
974ad01826
@ -537,6 +537,8 @@ AddCallBack1_r(struct host *host, AFSFid * fid, afs_uint32 * thead, int type,
|
|||||||
struct CallBack *newcb = 0;
|
struct CallBack *newcb = 0;
|
||||||
int safety;
|
int safety;
|
||||||
|
|
||||||
|
cbstuff.AddCallBacks++;
|
||||||
|
|
||||||
host->Console |= 2;
|
host->Console |= 2;
|
||||||
|
|
||||||
/* allocate these guys first, since we can't call the allocator with
|
/* allocate these guys first, since we can't call the allocator with
|
||||||
@ -861,9 +863,9 @@ DeleteCallBack(struct host *host, AFSFid * fid)
|
|||||||
register afs_uint32 *pcb;
|
register afs_uint32 *pcb;
|
||||||
char hoststr[16];
|
char hoststr[16];
|
||||||
|
|
||||||
|
H_LOCK;
|
||||||
cbstuff.DeleteCallBacks++;
|
cbstuff.DeleteCallBacks++;
|
||||||
|
|
||||||
H_LOCK;
|
|
||||||
h_Lock_r(host);
|
h_Lock_r(host);
|
||||||
fe = FindFE(fid);
|
fe = FindFE(fid);
|
||||||
if (!fe) {
|
if (!fe) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user