Re: [PATCH v2 9/9] blk-mq: support per-distpatch_queue flush machinery

2014-09-12 Thread Jens Axboe
On 2014-09-12 08:47, Ming Lei wrote: @@ -31,7 +33,15 @@ extern struct ida blk_queue_ida; static inline struct blk_flush_queue *blk_get_flush_queue( struct request_queue *q, struct blk_mq_ctx *ctx) { - return q->fq; + struct blk_mq_hw_ctx *hctx; + + if (!q->mq

[PATCH v2 9/9] blk-mq: support per-distpatch_queue flush machinery

2014-09-12 Thread Ming Lei
This patch supports to run one single flush machinery for each blk-mq dispatch queue, so that: - current init_request and exit_request callbacks can cover flush request too, then the buggy copying way of initializing flush request's pdu can be fixed - flushing performance gets improved in case of