summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-12-11 00:51:59 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-12-11 00:51:59 +0100
commitb09acf1aa79462bdacfe6744b469a17722a52702 (patch)
tree27ef83ed0d0bbf35938814f8ba3206e7881a170d /drivers/scsi
parentdm raid1: support flush (diff)
downloadlinux-b09acf1aa79462bdacfe6744b469a17722a52702.tar.xz
linux-b09acf1aa79462bdacfe6744b469a17722a52702.zip
dm raid1: split touched state into two
Split the variable "touched" into two, "touched_dirtied" and "touched_cleaned", set when some region was dirtied or cleaned. This will be used to optimize flushes. After a transition from "dirty" to "clean" state we don't have flush hardware cache on the log device. After a transition from "clean" to "dirty" the cache must be flushed. Before a transition from "clean" to "dirty" state we don't have to flush all the raid legs. Before a transition from "dirty" to "clean" we must flush all the legs to make sure that they are really in sync. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions