>     From: Scott Atchley <[EMAIL PROTECTED]>
>     Date: Mon, 11 Dec 2006 07:21:38 -0500
>     
>     
>     Two other comments:
>     
>     1) Do not hold any locks when calling any lnet_ functions.

Indeed.  And I forgot to mention that you have to be in thread context too!

> Yikes.  Yes.  I'm pretty sure I wasn't, but good to keep in mind.
> 
> Does that really mean no locks at all, or no locks that could turn into
> recursive lock attempts due to lnet calling back in?  Are the lnet things
> (which get called into by lnd) all non-blocking?

LNET will not block when you call lnet_finalize() unless it is to allocate
memory.  But it can call you back (e.g. to send an ACK when you finalize a
PUT).
All in all, it's best not to be holding any locks at all.


                Cheers,
                        Eric

---------------------------------------------------
|Eric Barton        Barton Software               |
|9 York Gardens     Tel:    +44 (117) 330 1575    |
|Clifton            Mobile: +44 (7909) 680 356    |
|Bristol BS8 4LL    Fax:    call first            |
|United Kingdom     E-Mail: [EMAIL PROTECTED]|
---------------------------------------------------


_______________________________________________
Lustre-devel mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-devel

Reply via email to