]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mmc_block: indicate strict ordering
authorPierre Ossman <drzeus@drzeus.cx>
Sat, 16 Aug 2008 19:15:50 +0000 (21:15 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 12 Oct 2008 09:04:31 +0000 (11:04 +0200)
The MMC block driver services requests one at a time and in strict
order. Indicate this to the block layer so that it can handle barriers
in an efficient manner.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/card/queue.c

index 5c8f037dca6b84f86986f65a6a107989c5f4bc6f..c25c975bdc3b518c2c0be415ebd22b77abbb0064 100644 (file)
@@ -131,6 +131,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
        mq->req = NULL;
 
        blk_queue_prep_rq(mq->queue, mmc_prep_request);
+       blk_queue_ordered(mq->queue, QUEUE_ORDERED_DRAIN, NULL);
 
 #ifdef CONFIG_MMC_BLOCK_BOUNCE
        if (host->max_hw_segs == 1) {