]> Git Repo - linux.git/commit
mmc: hsq: Fix data stomping during mmc recovery
authorWenchao Chen <[email protected]>
Fri, 16 Sep 2022 09:05:06 +0000 (17:05 +0800)
committerUlf Hansson <[email protected]>
Tue, 27 Sep 2022 10:38:29 +0000 (12:38 +0200)
commite7afa79a3b35a27a046a2139f8b20bd6b98155c2
treee1c1ece24aeb1f015f395c691d695171da9b9b24
parent3c6656337852e9f1a4079d172f3fddfbf00868f9
mmc: hsq: Fix data stomping during mmc recovery

The block device uses multiple queues to access emmc. There will be up to 3
requests in the hsq of the host. The current code will check whether there
is a request doing recovery before entering the queue, but it will not check
whether there is a request when the lock is issued. The request is in recovery
mode. If there is a request in recovery, then a read and write request is
initiated at this time, and the conflict between the request and the recovery
request will cause the data to be trampled.

Signed-off-by: Wenchao Chen <[email protected]>
Fixes: 511ce378e16f ("mmc: Add MMC host software queue support")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/mmc_hsq.c
This page took 0.056808 seconds and 4 git commands to generate.