[openib-general] Re: Re: SDP_CONN_LOCK
Michael S. Tsirkin
mst at mellanox.co.il
Sun Feb 20 05:16:40 PST 2005
Quoting r. Libor Michalek <libor at topspin.com>:
> And here I would have thought SDP_CONN_HOLD as a macro would have
> bugged people more. :)
>
> -Libor
>
Regarding conn_hold/conn_put (macro or not):
1. conn_put is sometimes called while socket is locked (sdp_cm_connect),
sometimes not (sdp_ip2pr_path_complete). What gives?
Is it OK to destroy the socket while its locked? Seems strange ...
2. When conn_put is called *outside* the lock, what prevents conn_hold
from being called while conn_put is in progress, thus hold will be
acting in parallel with destroy?
--
MST - Michael S. Tsirkin
More information about the general
mailing list