Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47f7369b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: block: Delete gendisk before cleaning up the request queue"

parents 7f907fe0 a0e9f728
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3963,7 +3963,6 @@ static void mmc_blk_remove_req(struct mmc_blk_data *md)
		queue_flag_set(QUEUE_FLAG_BYPASS, md->queue.queue);
		spin_unlock_irq(md->queue.queue->queue_lock);
		blk_set_queue_dying(md->queue.queue);
		mmc_cleanup_queue(&md->queue);

		if (md->flags & MMC_BLK_CMD_QUEUE)
			mmc_cmdq_clean(&md->queue, card);
@@ -3984,6 +3983,7 @@ static void mmc_blk_remove_req(struct mmc_blk_data *md)

			del_gendisk(md->disk);
		}
		mmc_cleanup_queue(&md->queue);
		mmc_blk_put(md);
	}
}