mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:30:54 +07:00
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 <drzeus@drzeus.cx>
This commit is contained in:
parent
f3eb0aaa02
commit
9102895411
@ -131,6 +131,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
|
|||||||
mq->req = NULL;
|
mq->req = NULL;
|
||||||
|
|
||||||
blk_queue_prep_rq(mq->queue, mmc_prep_request);
|
blk_queue_prep_rq(mq->queue, mmc_prep_request);
|
||||||
|
blk_queue_ordered(mq->queue, QUEUE_ORDERED_DRAIN, NULL);
|
||||||
|
|
||||||
#ifdef CONFIG_MMC_BLOCK_BOUNCE
|
#ifdef CONFIG_MMC_BLOCK_BOUNCE
|
||||||
if (host->max_hw_segs == 1) {
|
if (host->max_hw_segs == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user