]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: split make request handler for multi and single queue
authorJens Axboe <axboe@fb.com>
Thu, 22 May 2014 16:40:51 +0000 (10:40 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 22 May 2014 16:43:07 +0000 (10:43 -0600)
commitb7f56b560ddb83e95ffade6fa93feac8d73a6a71
tree3e13c8e1028e3722be926487acae5473c1eda2be
parent29886761373b234046e2b947648409ef1af57be0
blk-mq: split make request handler for multi and single queue

We want slightly different behavior from them:

- On single queue devices, we currently use the per-process plug
  for deferred IO and for merging.

- On multi queue devices, we don't use the per-process plug, but
  we want to go straight to hardware for SYNC IO.

Split blk_mq_make_request() into a blk_sq_make_request() for single
queue devices, and retain blk_mq_make_request() for multi queue
devices. Then we don't need multiple checks for q->nr_hw_queues
in the request mapping.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c