Merge "dm: md: Replace scheduling of request with direct call"

This commit is contained in:
Linux Build Service Account 2017-06-08 05:13:53 -07:00 committed by Gerrit - the friendly Code Review server
commit 3aa4e5e7c3

View file

@ -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;