sfc: hold filter_sem consistently during reset
authorBert Kenward <bkenward@solarflare.com>
Wed, 11 Jul 2018 10:45:10 +0000 (11:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:52:04 +0000 (14:52 -0700)
commit193f20033c54db0dc9563f722fbafbcd5fa0e80d
treeb7280f8fe55c3e33642e7f5147224dc8e25c40c3
parent1c56c0994a533ce564843a0d17af7a3e6e68f269
sfc: hold filter_sem consistently during reset

We should take and release the filter_sem consistently during the
reset process, in the same manner as the mac_lock and reset_lock.

For lockdep consistency we also take the filter_sem for write around
other calls to efx->type->init().

Fixes: c2bebe37c6b6 ("sfc: give ef10 its own rwsem in the filter table instead of filter_lock")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c