]> git.baikalelectronics.ru Git - kernel.git/commit
block/mq-deadline: Improve request accounting further
authorBart Van Assche <bvanassche@acm.org>
Mon, 27 Sep 2021 22:03:25 +0000 (15:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:02 +0000 (06:17 -0600)
commit9dc9a8257b387aada86d1e4fc8253c8357589e4c
treea1e775a7dbdfe1b11947fbb8cf8029c8d1495a56
parentcc4dbe591dc83b08ebcbd9b4c584e8630612641c
block/mq-deadline: Improve request accounting further

The scheduler .insert_requests() callback is called when a request is
queued for the first time and also when it is requeued. Only count a
request the first time it is queued. Additionally, since the mq-deadline
scheduler only performs zone locking for requests that have been
inserted, skip the zone unlock code for requests that have not been
inserted into the mq-deadline scheduler.

Fixes: 661e01def11e ("block/mq-deadline: Track I/O statistics")
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Niklas Cassel <Niklas.Cassel@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20210927220328.1410161-2-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c