Merge "backing-dev: ensure wakeup_timer is deleted" into msm-3.0
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
ae027cb3ec
@@ -686,6 +686,14 @@ void bdi_destroy(struct backing_dev_info *bdi)
|
|||||||
|
|
||||||
bdi_unregister(bdi);
|
bdi_unregister(bdi);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If bdi_unregister() had already been called earlier, the
|
||||||
|
* wakeup_timer could still be armed because bdi_prune_sb()
|
||||||
|
* can race with the bdi_wakeup_thread_delayed() calls from
|
||||||
|
* __mark_inode_dirty().
|
||||||
|
*/
|
||||||
|
del_timer_sync(&bdi->wb.wakeup_timer);
|
||||||
|
|
||||||
for (i = 0; i < NR_BDI_STAT_ITEMS; i++)
|
for (i = 0; i < NR_BDI_STAT_ITEMS; i++)
|
||||||
percpu_counter_destroy(&bdi->bdi_stat[i]);
|
percpu_counter_destroy(&bdi->bdi_stat[i]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user