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:39:47 -0800 |
commit | 71d5afaa15de1d1066799e2de54fe88182453ff1 (patch) | |
tree | 76c1ba8839b4cfd356d96f3a0afed5d96b4668f8 /COPYING | |
parent | 4b3ef7dfaa1615a1bb7659c8ddfeba3fe7b8e7df (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 'COPYING')
0 files changed, 0 insertions, 0 deletions