]> 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)
commit5f9fc107a2b5f91faf61c199a6df940fddb30887
tree24dd0a015fae802e2d5c22997ca356b9c727828d
parente071a9422e3c9b7152ab89317c46cc415645c684
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