Skip to content

Commit c10945a

Browse files
tytydracoExactExampl
authored andcommitted
mmc: queue: Do not attempt request merging
According to Admin Magazine, request merging is mostly for rotation disks in order to reduce seek times by grouping together requests. This reduces the frequency of disk spin-ups. However, flash storage does not suffer from long disk seeks. Disable request merging in order to reduce overhead and improve throughput. Signed-off-by: Tyler Nijmeh <tylernij@gmail.com> Signed-off-by: Oktapra Amtono <oktapra.amtono@gmail.com>
1 parent 5929484 commit c10945a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mmc/card/queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card,
397397

398398
blk_queue_prep_rq(mq->queue, mmc_prep_request);
399399
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, mq->queue);
400+
queue_flag_set_unlocked(QUEUE_FLAG_NOXMERGES, mq->queue);
400401
queue_flag_clear_unlocked(QUEUE_FLAG_ADD_RANDOM, mq->queue);
401402
if (mmc_can_erase(card))
402403
mmc_queue_setup_discard(mq->queue, card);

0 commit comments

Comments
 (0)