net/mlx5_core: Avoid usage command work entry after writing command doorbell
authorIra Gusinsky <irenag@mellanox.com>
Thu, 2 Apr 2015 14:07:27 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:41 +0000 (16:33 -0400)
commit21db507439ec3a76a9587f2ad50ad3e4d13f4440
tree8bfdc9ae335f89de7f7219a1273341d224d9733e
parent05e4ecd1dc8b085a9010f20dcb5409b25488480a
net/mlx5_core: Avoid usage command work entry after writing command doorbell

Avoid usage of command work entry in cmd_work_handler since it can be released
by mlx5_cmd_invoke before the work handler returns to running.

Signed-off-by: Ira Gusinsky <irenag@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c