]> git.baikalelectronics.ru Git - kernel.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)
commitf76f15e541dcbe73fdec27d1423a77999d9c1e0f
tree52b81204031618043211b80dc1c5adc0fa880e7d
parent477c6c2ab58da3348c0df7600dce52939c3cb5d2
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: 1095e107a07d ("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