Merge "dm: md: Replace scheduling of request with direct call"
This commit is contained in:
commit
3aa4e5e7c3
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue