Re: [PATCH V5 6/8] block: introduce .last_merge and .hash to blk_mq_ctx

2017-10-03 Thread Christoph Hellwig
> +enum elv_merge elv_merge_ctx(struct request_queue *q, struct request **req, > + struct bio *bio, struct blk_mq_ctx *ctx) > +{ > + WARN_ON_ONCE(!q->mq_ops); > + return __elv_merge(q, req, bio, ctx->hash, ctx->last_merge); > +} This function only has a single caller, just

Re: [PATCH V5 6/8] block: introduce .last_merge and .hash to blk_mq_ctx

2017-10-03 Thread Christoph Hellwig
> +enum elv_merge elv_merge_ctx(struct request_queue *q, struct request **req, > + struct bio *bio, struct blk_mq_ctx *ctx) > +{ > + WARN_ON_ONCE(!q->mq_ops); > + return __elv_merge(q, req, bio, ctx->hash, ctx->last_merge); > +} This function only has a single caller, just

[PATCH V5 6/8] block: introduce .last_merge and .hash to blk_mq_ctx

2017-09-30 Thread Ming Lei
Prepare for supporting bio merge to sw queue if no blk-mq io scheduler is taken. Tested-by: Oleksandr Natalenko Tested-by: Tom Nguyen Tested-by: Paolo Valente Signed-off-by: Ming Lei ---

[PATCH V5 6/8] block: introduce .last_merge and .hash to blk_mq_ctx

2017-09-30 Thread Ming Lei
Prepare for supporting bio merge to sw queue if no blk-mq io scheduler is taken. Tested-by: Oleksandr Natalenko Tested-by: Tom Nguyen Tested-by: Paolo Valente Signed-off-by: Ming Lei --- block/blk-mq.h | 4 block/blk.h | 3 +++ block/elevator.c | 22 +++--- 3