]> git.karo-electronics.de Git - karo-tx-linux.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)
commitddf8bd349115c2bc85a62e3d94018c9976ac72f7
tree24dd0a015fae802e2d5c22997ca356b9c727828d
parent4ce5a5744a2f5479e58c6788cbe3987b8071b62e
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