android_kernel_google_msm/drivers/md
Mike Snitzer 22f9c13508 dm thin: do not set discard_zeroes_data
commit 307615a26e upstream.

The dm thin pool target claims to support the zeroing of discarded
data areas.  This turns out to be incorrect when processing discards
that do not exactly cover a complete number of blocks, so the target
must always set discard_zeroes_data_unsupported.

The thin pool target will zero blocks when they are allocated if the
skip_block_zeroing feature is not specified.  The block layer
may send a discard that only partly covers a block.  If a thin pool
block is partially discarded then there is no guarantee that the
discarded data will get zeroed before it is accessed again.
Due to this, thin devices cannot claim discards will always zero data.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-19 10:54:48 -07:00
..
persistent-data dm persistent data: rename node to btree_node 2013-01-17 08:50:51 -08:00
bitmap.c
bitmap.h
dm-bio-record.h
dm-bufio.c
dm-bufio.h
dm-crypt.c
dm-delay.c
dm-exception-store.c
dm-exception-store.h
dm-flakey.c
dm-io.c
dm-ioctl.c dm ioctl: prevent unsafe change to dm_ioctl data_size 2013-01-17 08:50:51 -08:00
dm-kcopyd.c
dm-linear.c
dm-log-userspace-base.c
dm-log-userspace-transfer.c
dm-log-userspace-transfer.h
dm-log.c
dm-mpath.c
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid.c
dm-raid1.c
dm-region-hash.c
dm-round-robin.c
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c dm snapshot: fix error return code in snapshot_ctr 2013-05-19 10:54:37 -07:00
dm-stripe.c
dm-sysfs.c
dm-table.c dm table: clear add_random unless all devices have it set 2012-10-07 08:32:22 -07:00
dm-target.c
dm-thin-metadata.c
dm-thin-metadata.h
dm-thin.c dm thin: do not set discard_zeroes_data 2013-05-19 10:54:48 -07:00
dm-uevent.c
dm-uevent.h
dm-verity.c dm verity: fix overflow check 2012-10-07 08:32:22 -07:00
dm-zero.c
dm.c dm: fix deadlock with request based dm and queue request_fn recursion 2012-12-03 11:47:07 -08:00
dm.h
faulty.c
Kconfig
linear.c
linear.h
Makefile
md.c md: bad block list should default to disabled. 2013-05-07 19:51:56 -07:00
md.h
multipath.c
multipath.h
raid0.c md: raid0: fix error return from create_stripe_zones. 2013-03-14 11:29:49 -07:00
raid0.h
raid1.c md/raid1: Fix assembling of arrays containing Replacements. 2012-11-05 09:50:41 +01:00
raid1.h
raid5.c md/raid5: fix calculate of 'degraded' when a replacement becomes active. 2012-10-02 10:29:55 -07:00
raid5.h
raid10.c md/raid10: close race that lose writes lost when replacement completes. 2012-12-10 10:59:40 -08:00
raid10.h md/raid10: fix problem with on-stack allocation of r10bio structure. 2012-10-02 10:30:33 -07:00