]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f1673e0091f6fe9201bd953a27128c3253b7833
treeb7280f8fe55c3e33642e7f5147224dc8e25c40c3
parent5ad1b545dbdae66ab7acf2981781157de1583f4c
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: 7b31954ca5fd ("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