]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: fix race on comm channel
authorEugenia Emantayev <eugenia@mellanox.co.il>
Sun, 18 Mar 2012 04:32:08 +0000 (04:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Mar 2012 22:02:05 +0000 (18:02 -0400)
commit783b6421b0f422969c0ccf0430ad7ff182a6cf5f
tree0db88951509d01bb815e3357aafd41ba9ef2ee0e
parent5c82bafa1a1b0fdb1d06bee1e1031bcd8099d912
mlx4_core: fix race on comm channel

Prevent race condition between commands on comm channel.
Happened while unloading the driver when switching from
event to polling mode. VF got completion on the last command
before switching to polling mode, but toggle was not changed.
After the fix - VF will not write the next command before
toggle is updated.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c