Skip to content

Commit

Permalink
Merge branch 'ldmsw-fixes'
Browse files Browse the repository at this point in the history
Shannon Nelson says:

====================
ldmvsw: port removal stability

Under heavy reboot stress testing we found a couple of timing issues
when removing the device that could cause the kernel great heartburn,
addressed by these two patches.
====================

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed May 15, 2017
2 parents ca9df7e + 8b671f9 commit 66f4bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/sun/ldmvsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,14 @@ static int vsw_port_remove(struct vio_dev *vdev)

if (port) {
del_timer_sync(&port->vio.timer);
del_timer_sync(&port->clean_timer);

napi_disable(&port->napi);
unregister_netdev(port->dev);

list_del_rcu(&port->list);

synchronize_rcu();
del_timer_sync(&port->clean_timer);
spin_lock_irqsave(&port->vp->lock, flags);
sunvnet_port_rm_txq_common(port);
spin_unlock_irqrestore(&port->vp->lock, flags);
Expand All @@ -427,7 +428,6 @@ static int vsw_port_remove(struct vio_dev *vdev)

dev_set_drvdata(&vdev->dev, NULL);

unregister_netdev(port->dev);
free_netdev(port->dev);
}

Expand Down

0 comments on commit 66f4bc8

Please sign in to comment.