OSDN Git Service

ionic: move lif mutex setup and delete
authorShannon Nelson <snelson@pensando.io>
Fri, 1 Oct 2021 18:05:53 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:00:21 +0000 (14:00 +0100)
commit26671ff92c632e9c2fe25c3438887493c4123ad1
treeb5f87e14f1e3d048d7f652349bf86fc317d63df7
parent36b20b7fb1c3cba2334f772face5f42f8e644a8f
ionic: move lif mutex setup and delete

Move creation and deletion of lif mutex a level out to
lif creation and delete, rather than in init and deinit.
This assures that nothing will get hung if anything is waiting
on the mutex while the driver is clearing the lif while handling
the fw_down/fw_up cycle.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c