• Konstantin Dorfman's avatar
    mmc: fix async request mechanism for sequential read scenarios · 2220eedf
    Konstantin Dorfman authored
    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: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
    Reviewed-by: default avatarSeungwon Jeon <tgih.jun@samsung.com>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    2220eedf
bus.c 7.35 KB