Re: [PATCH V3 13/14] blk-mq-sched: refactor blk_mq_sched_try_merge()
From: Ming Lei <hidden>
Date: 2017-08-31 04:03:44
From: Ming Lei <hidden>
Date: 2017-08-31 04:03:44
On Wed, Aug 30, 2017 at 05:17:05PM +0000, Bart Van Assche wrote:
On Sun, 2017-08-27 at 00:33 +0800, Ming Lei wrote:quoted
-bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio, - struct request **merged_request) +static bool __blk_mq_try_merge(struct request_queue *q, + struct bio *bio, struct request **merged_request, + struct request *candidate, enum elv_merge type) { - struct request *rq; + struct request *rq = candidate;It seems weird to me that the argument 'candidate' is not used other than to copy its value into the local variable 'rq'? How about removing that local
OK, will simply use 'rq' as parameter.
variable and renaming the 'candidate' argument into 'rq'? Anyway, with or without that change: Reviewed-by: Bart Van Assche <redacted>
OK, thanks! -- Ming