mmc: core: Allow dynamical updates of the number of requests for hsq
authorWenchao Chen <wenchao.chen@unisoc.com>
Tue, 19 Sep 2023 07:47:06 +0000 (15:47 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 27 Sep 2023 10:13:18 +0000 (12:13 +0200)
commit2e2b547950bc09e75afe912f9683be39c2195d9d
tree600a579f8116798ff629ef4cee8f54118b794503
parentd7133797e9e1b72fd89237f68cb36d745599ed86
mmc: core: Allow dynamical updates of the number of requests for hsq

To allow dynamical updates of the current number of used in-flight
requests, let's move away from using a hard-coded value to a use a
corresponding variable in the struct mmc_host.

This can be valuable when optimizing for certain I/O request sequences, as
shown by subsequent changes.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Link: https://lore.kernel.org/r/20230919074707.25517-2-wenchao.chen@unisoc.com
[Ulf: Re-wrote the commitmsg to clarify the change]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/queue.c
drivers/mmc/host/mmc_hsq.c
drivers/mmc/host/mmc_hsq.h
include/linux/mmc/host.h