[openib-general] Re: [PATCH] SDP: fix oops with port reuse

Tom Duffy thomas.duffy.99 at alumni.brown.edu
Tue Aug 16 09:48:01 PDT 2005


On Aug 16, 2005, at 8:30 AM, Michael S. Tsirkin wrote:
> Why not? You cant really bind to port 0, can you?

I don't think so.  It was Libor who objected to this, so he must have  
had a reason.

>
>>     Maybe its a good idea to init bind_next at socket creation, at  
>> port_put
>>     we could call list_del_init, and/or use list_empty to figure out
>>     whether the socket is on the bind list.
>>
>>
>> Do you mean we would setup the bind_next field to point to itself?
>>
>
> Yes.

Other option is to initialize and check for LIST_POISON[12].

>
>> This is normally reserved for list heads.
>>
>
> What's list_del_init for then?

Resetting a list?

-tduffy



More information about the general mailing list