summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2014-12-04 15:13:59 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:25:41 -0700
commit23bf7111217b01b45af465f2cb4cf4bf37c0842b (patch)
treed7dc5dc0df6d379eb35e8abdeef9eeaa47577913 /include/linux
parent62649ebdb6dd7a6e4b558dcfd23b32212ff685e7 (diff)
mmc: do not pack random requests
Packed commands causes higher latency since the completion of each request is sent to the upper layer upon completion of the complete packed request. The benefit from this feature is card dependent. Some of the card vendors do not have any benefit from using packed commands for random requests. In case there is no benefit in random requests packing, it is better to disable the packing to prevent this high latency. This patch also add the new stop packing reason to the write packing statistics. Change-Id: I141887dcef2ceee14848634cc27c3c85f8edc7a5 Signed-off-by: Maya Erez <merez@codeaurora.org> [merez@codeaurora.org: fix conflicts due to removal of BKOPS] Signed-off-by: Maya Erez <merez@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index 8c70e624325b..01fe9263d2f2 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -227,6 +227,7 @@ enum mmc_packed_stop_reasons {
REL_WRITE,
THRESHOLD,
LARGE_SEC_ALIGN,
+ RANDOM,
MAX_REASONS,
};