|
@@ -2277,8 +2277,6 @@ static void dm_init_old_md_queue(struct mapped_device *md)
|
|
|
|
|
|
static void cleanup_mapped_device(struct mapped_device *md)
|
|
static void cleanup_mapped_device(struct mapped_device *md)
|
|
{
|
|
{
|
|
- cleanup_srcu_struct(&md->io_barrier);
|
|
|
|
-
|
|
|
|
if (md->wq)
|
|
if (md->wq)
|
|
destroy_workqueue(md->wq);
|
|
destroy_workqueue(md->wq);
|
|
if (md->kworker_task)
|
|
if (md->kworker_task)
|
|
@@ -2290,6 +2288,8 @@ static void cleanup_mapped_device(struct mapped_device *md)
|
|
if (md->bs)
|
|
if (md->bs)
|
|
bioset_free(md->bs);
|
|
bioset_free(md->bs);
|
|
|
|
|
|
|
|
+ cleanup_srcu_struct(&md->io_barrier);
|
|
|
|
+
|
|
if (md->disk) {
|
|
if (md->disk) {
|
|
spin_lock(&_minor_lock);
|
|
spin_lock(&_minor_lock);
|
|
md->disk->private_data = NULL;
|
|
md->disk->private_data = NULL;
|