well, you can but you need to call h_Lock(host) and not h_Lock_r().

Yes, but no one does.

I think my next step is to rationalize the locks so that H_LOCK is only (and
always) used to protect the hash table, and h_Lock is only used to protect
the host entry.  I think the order should be the other way around, too.
With the current code the host could disappear when you drop H_LOCK so you
can get h_Lock.  Unless it's always held (refcounted), which I'm not sure is
the case.
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to