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

Commit 0b35054f 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: Ied062dc21ffa0a774244245e77f1fff0578f318a
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 84a47e8c
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -848,8 +848,12 @@ static void dm_old_request_fn(struct request_queue *q)
		tio = tio_from_request(rq);
		tio = tio_from_request(rq);
		/* Establish tio->ti before queuing work (map_tio_request) */
		/* Establish tio->ti before queuing work (map_tio_request) */
		tio->ti = ti;
		tio->ti = ti;
		kthread_queue_work(&md->kworker, &tio->work);
		spin_unlock(q->queue_lock);
		if (map_request(tio) == DM_MAPIO_REQUEUE)
			dm_requeue_original_request(tio, false);

		BUG_ON(!irqs_disabled());
		BUG_ON(!irqs_disabled());
		spin_lock(q->queue_lock);
	}
	}
}
}