diff options
| author | Wenchao Chen <[email protected]> | 2023-09-19 07:47:06 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2023-09-27 10:13:18 +0000 |
| commit | 2e2b547950bc09e75afe912f9683be39c2195d9d (patch) | |
| tree | 600a579f8116798ff629ef4cee8f54118b794503 /drivers/mmc/core/queue.c | |
| parent | mmc: sdhci-pci-gli: A workaround to allow GL9750 to enter ASPM L1.2 (diff) | |
| download | kernel-2e2b547950bc09e75afe912f9683be39c2195d9d.tar.gz kernel-2e2b547950bc09e75afe912f9683be39c2195d9d.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[Ulf: Re-wrote the commitmsg to clarify the change]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/mmc/core/queue.c')
| -rw-r--r-- | drivers/mmc/core/queue.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c index b396e3900717..a0a2412f62a7 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c @@ -260,11 +260,7 @@ static blk_status_t mmc_mq_queue_rq(struct blk_mq_hw_ctx *hctx, } break; case MMC_ISSUE_ASYNC: - /* - * For MMC host software queue, we only allow 2 requests in - * flight to avoid a long latency. - */ - if (host->hsq_enabled && mq->in_flight[issue_type] > 2) { + if (host->hsq_enabled && mq->in_flight[issue_type] > host->hsq_depth) { spin_unlock_irq(&mq->lock); return BLK_STS_RESOURCE; } |
