fbdev: matroxfb: Convert to i2c's .probe_new()
[linux-2.6-microblaze.git] / drivers / md / dm-integrity.c
index e97e9f9..1388ee3 100644 (file)
@@ -4558,6 +4558,8 @@ static void dm_integrity_dtr(struct dm_target *ti)
        BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
        BUG_ON(!list_empty(&ic->wait_list));
 
+       if (ic->mode == 'B')
+               cancel_delayed_work_sync(&ic->bitmap_flush_work);
        if (ic->metadata_wq)
                destroy_workqueue(ic->metadata_wq);
        if (ic->wait_wq)