Skip to content
Commit 4fdb3b9f authored by Federico Gavioli's avatar Federico Gavioli Committed by Jens Axboe
Browse files

block, bfq: retrieve independent access ranges from request queue



This patch implements the code to gather the content of the
independent_access_ranges structure from the request_queue and copy
it into the queue's bfq_data. This copy is done at queue initialization.

We copy the access ranges into the bfq_data to avoid taking the queue
lock each time we access the ranges.

This implementation, however, puts a limit to the maximum independent
ranges supported by the scheduler. Such a limit is equal to the constant
BFQ_MAX_ACTUATORS. This limit was placed to avoid the allocation of
dynamic memory.

Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Co-developed-by: default avatarRory Chen <rory.c.chen@seagate.com>
Signed-off-by: default avatarRory Chen <rory.c.chen@seagate.com>
Signed-off-by: default avatarFederico Gavioli <f.gavioli97@gmail.com>
Signed-off-by: default avatarPaolo Valente <paolo.valente@linaro.org>
Link: https://lore.kernel.org/r/20230103145503.71712-7-paolo.valente@linaro.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8b7fd741
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment