comment assumptions in lih0_r
authorDerrick Brashear <shadow@dementia.org>
Sat, 20 Mar 2010 14:40:32 +0000 (10:40 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 21 Mar 2010 17:10:16 +0000 (10:10 -0700)
previously, we checked for  (!held && !h_OtherHolds_r(host))
now, we want to confirm only we hold it, so comment that that's how
this works

Change-Id: I98a65fbb4f2d0532054c71699dc2168e4592668b
Reviewed-on: http://gerrit.openafs.org/1598
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/viced/callback.c

index b5006a1..9cfd1d5 100644 (file)
@@ -1533,6 +1533,7 @@ lih0_r(register struct host *host, register int flags, void *rock)
 {
     struct lih_params *params = (struct lih_params *)rock;
 
+    /* OTHER_MUSTHOLD_LIH is because the h_Enum loop holds us once */
     if (host->cblist
        && (!(host->hostFlags & HOSTDELETED))
        && (host->refCount < OTHER_MUSTHOLD_LIH)