vxge: add missing flush of reset_task
Subsystems (2)
PATCH 1/1 vxge: add missing flush of reset_task
Commit 6e07ebd84 (drivers/net: remove unnecessary flush_scheduled_work() calls) incorrectly removed the flush call without replacing it with the appropriate work specific operation. Fix it by flushing vdev->reset_task explicitly.
Pointed out by Jon Mason.
--- drivers/net/vxge/vxge-main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/vxge/vxge-main.c +2 -0
@@ -3439,6 +3439,8 @@ static void vxge_device_unregister(struct __vxge_hw_device *hldev)strncpy (buf, dev->name,IFNAMSIZ ); +flush_work_sync (&vdev->reset_task); +/* in 2.6 will call stop() if device is up */ unregister_netdev (dev);
Quoted 9 lines · Tejun Heo
Commit
6e07ebd84(drivers/net: remove unnecessaryflush_scheduled_work()calls) incorrectly removed the flush call without replacing it with the appropriate work specific operation. Fix it by flushingvdev->reset_taskexplicitly.Pointed out by Jon Mason.
Signed-off-by Tejun Heo <[email protected]>Cc Jon Mason <[email protected]>
Quoted 17 lines
--- drivers/net/vxge/vxge-main.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/vxge/vxge-main.c +2
-0@@ -3439,6 +3439,8 @@ static void vxge_device_unregister(struct __vxge_hw_device *hldev)strncpy (buf, dev->name,IFNAMSIZ ); +flush_work_sync (&vdev->reset_task); +/* in 2.6 will call stop() if device is up */ unregister_netdev (dev);
David Miller
maintainerFrom: Jon Mason <[email protected]>
Date: Wed, 15 Dec 2010 08:29:00 -0600
Quoted 11 lines · Tejun Heo
Quoted 9 lines
Commit
6e07ebd84(drivers/net: remove unnecessaryflush_scheduled_work()calls) incorrectly removed the flush call without replacing it with the appropriate work specific operation. Fix it by flushingvdev->reset_taskexplicitly.Pointed out by Jon Mason.
Signed-off-by Tejun Heo <[email protected]>Cc Jon Mason <[email protected]>Acked-by Jon Mason <[email protected]>
I'll apply this, thanks.