[PATCH] block: delete bdi writeback wakup_timer in blk_cleanup_queue()

From: Lin Ming
Date: Tue Sep 06 2011 - 10:45:43 EST


Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>
---
block/blk-core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index 90e1ffd..22529a3 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -363,6 +363,7 @@ void blk_cleanup_queue(struct request_queue *q)
blk_sync_queue(q);

del_timer_sync(&q->backing_dev_info.laptop_mode_wb_timer);
+ del_timer_sync(&q->backing_dev_info.wb.wakeup_timer);
mutex_lock(&q->sysfs_lock);
queue_flag_set_unlocked(QUEUE_FLAG_DEAD, q);
mutex_unlock(&q->sysfs_lock);
--
1.7.2.3

Regards,
Lin Ming

> Modules linked in: [last unloaded: scsi_wait_scan]
> Pid: 5144, comm: umount Not tainted 3.0.4-y264 #1
> Call Trace:
> [<c106f59d>] warn_slowpath_common+0x6d/0xa0
> [<c12b5d75>] ? debug_print_object+0x85/0xa0
> [<c12b5d75>] ? debug_print_object+0x85/0xa0
> [<c106f64e>] warn_slowpath_fmt+0x2e/0x30
> [<c12b5d75>] debug_print_object+0x85/0xa0
> [<c10d4bf0>] ? bdi_init+0x150/0x150
> [<c12b5f0a>] __debug_check_no_obj_freed+0xda/0x180
> [<c106a2fb>] ? get_parent_ip+0xb/0x40
> [<c12b68c5>] debug_check_no_obj_freed+0x15/0x20
> [<c10f07ba>] kmem_cache_free+0x9a/0xc0
> [<c12a9f18>] ? prop_local_destroy_percpu+0x8/0x10
> [<c10d4e3b>] ? bdi_destroy+0xdb/0x110
> [<c1299d95>] ? blk_release_queue+0x45/0x50
> [<c1299d95>] blk_release_queue+0x45/0x50
> [<c12a756a>] kobject_release+0x3a/0x80
> [<c12a7530>] ? kobject_del+0x60/0x60
> [<c12a891d>] kref_put+0x2d/0x60
> [<c12a747d>] kobject_put+0x1d/0x50
> [<c1084568>] ? __cancel_work_timer+0x68/0x70
> [<c129707d>] blk_put_queue+0xd/0x10
> [<c1465953>] scsi_device_dev_release_usercontext+0xe3/0x120
> [<c1465870>] ? scsi_device_cls_release+0x10/0x10
> [<c108432c>] execute_in_process_context+0x5c/0x70
> [<c1465853>] scsi_device_dev_release+0x13/0x20
> [<c1440559>] device_release+0x19/0x80
> [<c10f06f9>] ? kfree+0xc9/0xd0
> [<c12a7575>] ? kobject_release+0x45/0x80
> [<c12a756a>] kobject_release+0x3a/0x80
> [<c12a7530>] ? kobject_del+0x60/0x60
> [<c12a891d>] kref_put+0x2d/0x60
> [<c12a747d>] kobject_put+0x1d/0x50
> [<c12a747d>] ? kobject_put+0x1d/0x50
> [<c14402ff>] put_device+0xf/0x20
> [<c145b2f3>] scsi_device_put+0x33/0x50
> [<c148375b>] scsi_disk_put+0x2b/0x40
> [<c1483daf>] sd_release+0x2f/0x60
> [<c11200f0>] __blkdev_put+0x120/0x160
> [<c11200cd>] __blkdev_put+0xfd/0x160
> [<c1120153>] blkdev_put+0x23/0x110
> [<c10f67a0>] kill_block_super+0x40/0x70
> [<c10f6c0d>] deactivate_locked_super+0x3d/0x60
> [<c10f72a9>] deactivate_super+0x49/0x70
> [<c110e1c6>] mntput_no_expire+0x86/0xc0
> [<c110f10d>] sys_umount+0x5d/0xb0
> [<c179141c>] sysenter_do_call+0x12/0x2c
> ---[ end trace ad6863f336beb434 ]---
>
>
> --
> Frank




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/