From: Derrick Brashear Date: Sat, 20 Mar 2010 14:40:32 +0000 (-0400) Subject: comment assumptions in lih0_r X-Git-Tag: openafs-devel-1_5_73~35 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=88a40ffd3b82f3ca1a1b2d57f32859a9d57b922e;hp=c9761464e7d8f1446862a3c94d900c74403b0f07 comment assumptions in lih0_r 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 Tested-by: Derrick Brashear --- diff --git a/src/viced/callback.c b/src/viced/callback.c index b5006a1..9cfd1d5 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -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)