[dm-devel] [PATCH 5/5] dm-mpath: improve I/O schedule

Bart Van Assche Bart.VanAssche at wdc.com
Fri Sep 15 21:42:55 UTC 2017


On Sat, 2017-09-16 at 00:44 +0800, Ming Lei wrote:
> +static void save_path_queue_depth(struct pgpath *p)
> +{
> +	struct request_queue *q = bdev_get_queue(p->path.dev->bdev);
> +
> +	p->old_nr_requests = q->nr_requests;
> +	p->queue_depth = q->queue_depth;
> +
> +	/* one extra request for making the pipeline full */
> +	if (p->queue_depth)
> +		blk_update_nr_requests(q, p->queue_depth + 1);
> +}

blk_mq_init_allocated_queue() initializes nr_requests to the tag set queue depth.
Does that mean that the above code increases nr_requests by one? If so, does
that change only result in a performance improvement for the queue depth
mentioned in the path description (3)? Sorry but I doubt that this change will
yield a significant improvement for higher queue depths. Does that mean that
this patch can be left out?

Thanks,

Bart.




More information about the dm-devel mailing list