]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: remove bondage between REQ_META and reliable write
authorLuca Porzio <lporzio@micron.com>
Fri, 6 Nov 2015 15:12:26 +0000 (15:12 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 9 Nov 2015 13:04:52 +0000 (14:04 +0100)
commit332cd9f777a4168b8f673bd7b414712e5193b3bb
treed05219c680d19101c71ba65df8dcc6983d971d52
parentb48e086c1bc079c1e9b76013decf9a7928d02c5a
mmc: remove bondage between REQ_META and reliable write

Anytime a write operation is performed with Reliable Write flag enabled,
the eMMC device is enforced to bypass the cache and do a write to the
underling NVM device by Jedec specification; this causes a performance
penalty since write operations can't be optimized by the device cache.

In our tests, we replayed a typical mobile daily trace pattern and found
~9% overall time reduction in trace replay by using this patch. Also the
write ops within 4KB~64KB chunk size range get a 40~60% performance
improvement by using the patch (as this range of write chunks are the ones
affected by REQ_META).

This patch has been discussed in the Mobile & Embedded Linux Storage Forum
and it's the results of feedbacks from many people. We also checked with
fsdevl and f2fs mailing list developers that this change in the usage of
REQ_META is not affecting FS behavior and we got positive feedbacks.
Reporting here the feedbacks:
http://comments.gmane.org/gmane.linux.file-systems/97219
http://thread.gmane.org/gmane.linux.file-systems.f2fs/3178/focus=3183

Signed-off-by: Bruce Ford <bford@micron.com>
Signed-off-by: Luca Porzio <lporzio@micron.com>
Fixes: 60c4fc5f58e2 ("mmc: support packed write command for eMMC4.5 devices")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c