• K
    mmc: fix async request mechanism for sequential read scenarios · 2220eedf
    Konstantin Dorfman 提交于
    When current request is running on the bus and if next request fetched
    by mmcqd is NULL, mmc context (mmcqd thread) gets blocked until the
    current request completes. This means that if new request comes in while
    the mmcqd thread is blocked, this new request can not be prepared in
    parallel to current ongoing request. This may result in delaying the new
    request execution and increase it's latency.
    
    This change allows to wake up the MMC thread on new request arrival.
    Now once the MMC thread is woken up, a new request can be fetched and
    prepared in parallel to the current running request which means this new
    request can be started immediately after the current running request
    completes.
    
    With this change read throughput is improved by 16%.
    Signed-off-by: NKonstantin Dorfman <kdorfman@codeaurora.org>
    Reviewed-by: NSeungwon Jeon <tgih.jun@samsung.com>
    Signed-off-by: NChris Ball <cjb@laptop.org>
    2220eedf
block.c 49.8 KB