git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e80669
)
net/mlx4_core: Protect port type setting by mutex
author
Amir Vadai
<amirv@mellanox.com>
Sun, 2 Nov 2014 14:26:14 +0000
(16:26 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 3 Nov 2014 17:28:13 +0000
(12:28 -0500)
We need to protect set_port_type() for concurrency, as the sysfs code could
call it from mutliple contexts in parallel.
The port_mutex is not enough because we need to protect from concurrent
modification of 'info' and stopping of the port sensing work.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
patch
|
blob
|
history
diff --cc
drivers/net/ethernet/mellanox/mlx4/main.c
Simple merge