diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-07-20 14:25:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-29 08:04:21 -0700 |
commit | 5a4db9ee4f44658077a11c71d78a17573016fc0e (patch) | |
tree | d871a7d3fda912e1d892857c329c997af28ece5f /ipc/shm.c | |
parent | 91aafba4414743c24c6d06ccca75113e4abd13a8 (diff) | |
download | linux-3.10-5a4db9ee4f44658077a11c71d78a17573016fc0e.tar.gz linux-3.10-5a4db9ee4f44658077a11c71d78a17573016fc0e.tar.bz2 linux-3.10-5a4db9ee4f44658077a11c71d78a17573016fc0e.zip |
dm raid1: set discard_zeroes_data_unsupported
commit 7c8d3a42fe1c58a7e8fd3f6a013e7d7b474ff931 upstream.
We can't guarantee that REQ_DISCARD on dm-mirror zeroes the data even if
the underlying disks support zero on discard. So this patch sets
ti->discard_zeroes_data_unsupported.
For example, if the mirror is in the process of resynchronizing, it may
happen that kcopyd reads a piece of data, then discard is sent on the
same area and then kcopyd writes the piece of data to another leg.
Consequently, the data is not zeroed.
The flag was made available by commit 983c7db347db8ce2d8453fd1d89b7a4bb6920d56
(dm crypt: always disable discard_zeroes_data).
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions