blk-mq: make sure that correct hctx->dispatch_from is set

2018-05-18 Thread
Author: huhai Date: Fri May 18 17:09:56 2018 +0800 blk-mq: make sure that correct hctx->dispatch_from is set When the number of hardware queues is changed, the drivers will call blk_mq_update_nr_hw_queues() to remap hardware queues, and then the ctx mapped on hctx will also

blk-mq: for sync case, whether it is mq or sq make_request instances, we should send the request directly

2018-05-15 Thread
Author: huhai Date: Wed May 16 10:34:22 2018 +0800 blk-mq: for sync case, whether it is mq or sq make_request instances, we should send the request directly For sq make_request instances, we should issue sync request directly too, otherwise it will break down the semantics of

blk-mq: for sync case, whether it is mq or sq make_request instances, we should send the request directly

2018-05-15 Thread
Author: huhai Date: Wed May 16 10:34:22 2018 +0800 blk-mq: for sync case, whether it is mq or sq make_request instances, we should send the request directly For sq make_request instances, we should issue sync request directly too, otherwise it will break down the semantics of

blk-mq: remove unnecessary judgement from blk_mq_make_request

2018-05-15 Thread
Author: huhai Date: Tue May 15 15:15:06 2018 +0800 blk-mq: remove unnecessary judgement from blk_mq_make_request Whether q->elevator is true or not, we can use blk_mq_sched_insert_request to complete the work. Signed-off-by: huhai diff --git a/block/blk-mq.c b/block/blk