]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: block: Fix unsupported parallel dispatch of requests
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 21 Aug 2018 12:05:55 +0000 (15:05 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Aug 2018 14:12:41 +0000 (16:12 +0200)
commit26caddf274cf1e89fd4ce44ab2b8dbc7a7f97681
tree52b81204031618043211b80dc1c5adc0fa880e7d
parent17e96d8516e31c3cb52cb8e2ee79d1d2e6948c11
mmc: block: Fix unsupported parallel dispatch of requests

The mmc block driver does not support parallel dispatch of requests. In
normal circumstances, all requests are anyway funneled through a single
work item, so parallel dispatch never happens. However it can happen if
there is no elevator.

Fix that by detecting if a dispatch is in progress and returning busy
(BLK_STS_RESOURCE) in that case

Fixes: 81196976ed94 ("mmc: block: Add blk-mq support")
Cc: stable@vger.kernel.org # v4.16+
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/queue.c
drivers/mmc/core/queue.h