]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Remove use of comm_owned field
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 May 2018 16:38:29 +0000 (11:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:33:00 +0000 (16:33 -0400)
commite64fe01658de176723e29a9335ac4ae600c526f4
tree18a13e3b874b9c87b53306216fe4afc1234d2c1f
parent3a5f5d723ef4a358aadfc5e191cd7276579fb8f3
amd-xgbe: Remove use of comm_owned field

The comm_owned field can hide logic where double locking is attempted
and prevent multiple threads for the same device from accessing the
mutex properly.  Remove the comm_owned field and use the mutex API
exclusively for gaining ownership.  The current driver has been audited
and is obtaining communications ownership properly.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c