[openib-general] [PATCH]code optimization in ib_register_mad_agent()
Hal Rosenstock
halr at voltaire.com
Mon Nov 1 08:17:38 PST 2004
On Fri, 2004-10-29 at 20:13, Sean Hefty wrote:
> On Fri, 29 Oct 2004 17:35:40 -0600
> Shirley Ma <xma at us.ibm.com> wrote:
>
> > I am starting to look at the access layer code. Here is a code
> > optimization patch in ib_register_mad_agent().
>
> ib_mad_client_id must be incremented while holding the spinlock (or
> converted into an atomic). The rest of the initialization looks fine
> moved upwards.
Thanks. Applied with moving the ib_mad_client_id increment down under
holding the registration lock.
-- Hal
More information about the general
mailing list