Skip to content

Commit 3335f0c

Browse files
Amerigo Wangdavem330
authored andcommitted
netconsole: do not release spin_lock when calling __netpoll_cleanup
With the previous patch applied, __netpoll_cleanup() is non-block now, so we don't need to release the spin_lock before calling it. Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 38e6bc1 commit 3335f0c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/net/netconsole.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,12 +640,7 @@ static int netconsole_netdev_event(struct notifier_block *this,
640640
* rtnl_lock already held
641641
*/
642642
if (nt->np.dev) {
643-
spin_unlock_irqrestore(
644-
&target_list_lock,
645-
flags);
646643
__netpoll_cleanup(&nt->np);
647-
spin_lock_irqsave(&target_list_lock,
648-
flags);
649644
dev_put(nt->np.dev);
650645
nt->np.dev = NULL;
651646
netconsole_target_put(nt);

0 commit comments

Comments
 (0)