EKKANE-215:[kane][sdcard]block: remove QUEUE_FLAG_BYPASS for sdcard in blk_remove_req.
authorbaitong <baitong@huaqin.com>
Sat, 22 Dec 2018 09:56:56 +0000 (17:56 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:07 +0000 (17:30 +0800)
Change-Id: I0c5a8ed3b04bd73391dcda930460d996f29fc5fc

drivers/mmc/core/block.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ce6dd49..0916415
@@ -2272,9 +2272,13 @@ static void mmc_blk_remove_req(struct mmc_blk_data *md)
                 * from being accepted.
                 */
                card = md->queue.card;
-               spin_lock_irq(md->queue.queue->queue_lock);
-               queue_flag_set(QUEUE_FLAG_BYPASS, md->queue.queue);
-               spin_unlock_irq(md->queue.queue->queue_lock);
+               if (!mmc_card_sd(card))
+               {
+                       spin_lock_irq(md->queue.queue->queue_lock);
+                       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->disk->flags & GENHD_FL_UP) {