diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-02-22 23:59:05 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-02-22 23:26:53 -0800 |
commit | fa598e1bbb33125f0463f4cfc382206fbabb352d (patch) | |
tree | 5c466e240d76ba97c1673fb0b28f2793417b5e58 /xlators/cluster/dht | |
parent | b7c361c6c387fe858a51e65cbc6e3be0724bb088 (diff) |
performance/write-behind: fix data corruption while aggregating the adjacent contiguous iobufs into a single iobuf
- while aggregating, we should make sure that the destination has enough
memory. __wb_collapse_write_bufs assumed that destination vector's iov_base
was aligned to the start of an iobuf and hence memory of page_size is
available for aggregation. This assumption is not always true, like in the
configuration consisting afr->write->io-cache (afr is on top). Refer to the
bug url for more details.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 542 (write-behind crashes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=542
Diffstat (limited to 'xlators/cluster/dht')
0 files changed, 0 insertions, 0 deletions