From: Pierre Ossman Date: Sat, 16 Aug 2008 19:15:50 +0000 (+0200) Subject: mmc_block: indicate strict ordering X-Git-Tag: Ubuntu-5.2.0-15.16~33069^2~11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=91028954119e464ae42350658d46c204d781b484;p=mirror_ubuntu-eoan-kernel.git mmc_block: indicate strict ordering 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 --- diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 5c8f037dca6b..c25c975bdc3b 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -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) {