[openib-general] RE: [PATCH][kdapl] fix spin_lock_irqsave/spi n_unlock_irqrestore i mplementation

Tom Duffy tduffy at sun.com
Fri May 20 13:57:47 PDT 2005


On Fri, 2005-05-20 at 00:04 +0300, Itamar Rabenstein wrote:
> I am not saying that we need it in OpenIb code because it was in SF code 
> I said that in OpenIb implementation we need it the same as in SF we need
> it.
> we must have this lock because for example :
> if the same evd will be a CM evd for 2 ep's
> each one on different Thread both can try to add an event to the evd in the
> same time
> there for we need to lock the evd when we take an empty event from one list
> (empty list) 
> and to unlock it after we add the event to the second list (waiting events
> list)
> the lock is in one function and the unlock in the second function.
> 
> so we need in out OpenIb code and also SF code need it (;-)

Fair enough.  Thanks for the clarification.

-tduffy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050520/d8111df8/attachment.sig>


More information about the general mailing list