linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* help with 'discard' mount option on ext4
@ 2013-10-10  8:28 Prasanna NAVARATNA
  2013-10-11 13:53 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Prasanna NAVARATNA @ 2013-10-10  8:28 UTC (permalink / raw)
  To: linux-ext4

Hello,

I'm using Hynix eMMC4.41 with Linux kernel 3.4.5.

After mounting ext4 partition /userdata with 'discard' mount option enabled,
fs triggers TRIM commands to eMMC after every file deletion. With this
setup, for a continuous reboot test (5s awake and issue reboot and repeat)
with 10 or 20 iterations, i see data corruption in eMMC consistently.

mount options are :- noatime,nosuid,nodev,noauto_da_alloc,discard
encryptable="path"

What am i missing here? if 'discard' mount option is removed, then no data
corruption in eMMC for more than 200 iterations. Does TRIM needs some extra
care? BKOPS is not enabled in eMMC (is bkops mandatory if using TRIM?)
Are there any latest patches which address these corruption issues during
reboot with discard option enabled?
Please help to analyze further.

Thanks,
Prasanna NAVARATNA


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-11 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10  8:28 help with 'discard' mount option on ext4 Prasanna NAVARATNA
2013-10-11 13:53 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).