Re: [PATCH V3 13/14] blk-mq-sched: refactor blk_mq_sched_try_merge()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2017-08-27 at 00:33 +0800, Ming Lei wrote:
> -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
variable and renaming the 'candidate' argument into 'rq'? Anyway, with or
without that change:

Reviewed-by: Bart Van Assche <bart.vanassche@xxxxxxx>




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux