Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9762c3c authored by Neeraj Soni's avatar Neeraj Soni
Browse files

dm: md: Replace scheduling of request with direct call



This is found to be improving the performance of Random
read and write with FDE enabled. The scheduling was
introduced as part of 4.4 kernel for mq support.

Change-Id: I300750b5f7f1cff4b81f028ae938e7d2b3652bd2
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 8d601310
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2191,8 +2191,11 @@ static void dm_request_fn(struct request_queue *q)
		tio = tio_from_request(rq);
		/* Establish tio->ti before queuing work (map_tio_request) */
		tio->ti = ti;
		queue_kthread_work(&md->kworker, &tio->work);
		spin_unlock(q->queue_lock);
		if (map_request(tio, rq, md) == DM_MAPIO_REQUEUE)
			dm_requeue_original_request(md, rq);
		BUG_ON(!irqs_disabled());
		spin_lock(q->queue_lock);
	}

	goto out;