diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index f51821d45870..0fa354c49d22 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -18,6 +18,7 @@ #include #include +#include #include "queue.h" #define MMC_QUEUE_BOUNCESZ 65536 @@ -60,6 +61,11 @@ static int mmc_queue_thread(void *d) struct request_queue *q = mq->queue; struct mmc_card *card = mq->card; + struct sched_param scheduler_params = {0}; + scheduler_params.sched_priority = 1; + + sched_setscheduler(current, SCHED_FIFO, &scheduler_params); + current->flags |= PF_MEMALLOC; down(&mq->thread_sem);