[Pvfs2-developers] Using bmi_method_addr_reg_callback()
Scott Atchley
atchley at myri.com
Fri Dec 8 11:05:52 EST 2006
On Dec 8, 2006, at 10:17 AM, Pete Wyckoff wrote:
> I never completely grasped this myself, and the IB code ended up
> like that by trying all the combinations until the core dumps went
> away.
>
> I think it is this, but Phil may correct me: when you do an active
> lookup, via BMI_addr_lookup, it is that function itself that builds
> the new reference for the address (alloc_ref_st()). The device, as
> invoked by the addr_lookup method function, does not need to call
> back into BMI to tell it to allocate the address it is currently
> working on for the client.
>
> On the other hand, when the server happens to find out about a new
> address due to passive activity, in our case listening on a TCP
> socket for new connections, the BMI layer doesn't know about the
> address. The device must use the callback function to tell BMI to
> allocate the reference structure.
>
> If you come up with a nice way to understand and comment that, let
> me know and I'll stick it here and there in the code. Better yet,
> send a patch for bmi.c that will let us all know.
>
> -- Pete
Hi Pete,
Thanks. I doubt that I understand it enough to comment it. :-)
Scott
More information about the Pvfs2-developers
mailing list