[Ocfs2-devel] [PATCH 6/8] ocfs2/dlm: Add message DLM_QUERY_HBREGION

Sunil Mushran sunil.mushran at oracle.com
Thu Jul 29 10:22:40 PDT 2010


On 07/28/2010 10:03 PM, Wengang Wang wrote:
> Yes, I can see what you are doing there.
> But you are comparing twice. I was emphasising "again" :)
> The bhregions is like a collection. we say collection A is equal to
> collection B, it can mean the number is equal, and all elements in
> collection A are all in collection B. So no need to compare each region
> again.
>    

Sorry, my example was not correct. What if node sends regions A, B, A
while the receiving node expects A, B, C. It should not happen.
But considering we rely on the hb regions being consistent, we can
never be too careful.

Agreed, I can come up with another scheme. But here the max
is small. And in such cases, brute force typically works best.



More information about the Ocfs2-devel mailing list