]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Do IBoE locking earlier when initializing the GID table
authorMoni Shoua <monis@mellanox.co.il>
Wed, 5 Feb 2014 13:13:00 +0000 (15:13 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Feb 2014 22:31:08 +0000 (14:31 -0800)
commite766538b23640e126e6a9d3290fdb1a0e9d9e2cc
tree24dd0a015fae802e2d5c22997ca356b9c727828d
parentcd5bbe7c36fd4d96c6ef7d7e90d7eae8e56dfae4
IB/mlx4: Do IBoE locking earlier when initializing the GID table

Updating the GID table under IBoE requires read/write from/to shared
data structures.  These data structures are protected with the device
iboe lock.  The flows that modify the GID table start from

    1. Initializing the GID table
    2. NETDEV events
    3. INET or INET6 events

This patch makes sure that the flow of initializing the GID table is
consistent with the other two flows w.r.t on what step the lock is taken.

Signed-off-by: Moni Shoua <monis@mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c