Star64_linux/include/linux/mmc
Adrian Hunter e0097cf5f2 mmc: queue: Fix queue thread wake-up
The only time the driver sleeps expecting to be woken upon the arrival of
a new request, is when the dispatch queue is empty. The only time that it
is known whether the dispatch queue is empty is after NULL is returned
from blk_fetch_request() while under the queue lock.

Recognizing those facts, simplify the synchronization between the queue
thread and the request function. A couple of flags tell the request
function what to do, and the queue lock and barriers associated with
wake-ups ensure synchronization.

The result is simpler and allows the removal of the context_info lock.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Harjani Ritesh <riteshh@codeaurora.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2016-12-05 10:31:03 +01:00
..
boot.h
card.h mmc: core: use enum mmc_blk_status properly 2016-11-29 09:00:51 +01:00
core.h mmc: core: use enum mmc_blk_status properly 2016-11-29 09:00:51 +01:00
dw_mmc.h mmc: dw_mmc: use the cookie's enum values for post/pre_req() 2016-11-29 09:05:09 +01:00
host.h mmc: queue: Fix queue thread wake-up 2016-12-05 10:31:03 +01:00
mmc.h mmc: core: implement enhanced strobe support 2016-07-25 10:34:05 +02:00
pm.h
sd.h
sdhci-pci-data.h
sdio.h
sdio_func.h
sdio_ids.h brcmfmac: add support for bcm4339 chip with modalias sdio:c00v02D0d4339 2016-09-09 12:12:14 +03:00
sh_mmcif.h
slot-gpio.h mmc: core: expose the capability of gpio card detect 2016-11-29 09:00:37 +01:00