From: Ming Lei Date: Sun, 28 Jun 2015 06:06:32 +0000 (-0700) Subject: block: loop: set QUEUE_FLAG_NOMERGES for request queue of loop X-Git-Tag: v4.1.12-92~272^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=61abea3f4fd881a7810a015f1f929b31caa996c4;p=users%2Fjedix%2Flinux-maple.git block: loop: set QUEUE_FLAG_NOMERGES for request queue of loop It doesn't make sense to enable merge because the I/O submitted to backing file is handled page by page. Signed-off-by: Ming Lei Signed-off-by: Santosh Shilimkar --- diff --git a/drivers/block/loop.c b/drivers/block/loop.c index cef6fa83a2740..e4708e81d2cd4 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1572,6 +1572,12 @@ static int loop_add(struct loop_device **l, int i) } lo->lo_queue->queuedata = lo; + /* + * It doesn't make sense to enable merge because the I/O + * submitted to backing file is handled page by page. + */ + queue_flag_set_unlocked(QUEUE_FLAG_NOMERGES, lo->lo_queue); + INIT_LIST_HEAD(&lo->write_cmd_head); INIT_WORK(&lo->write_work, loop_queue_write_work);