summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src/read-ahead.h
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2012-01-19 17:49:42 -0500
committerAnand Avati <avati@gluster.com>2012-01-30 05:09:35 -0800
commitc3aa99d907591f72b6302287b9b8899514fb52f1 (patch)
tree40dceb4deb7e1987caf4004eb76ead91ef4e6fd6 /xlators/performance/read-ahead/src/read-ahead.h
parent20d74c540879d3994d56b9baf7044c79ae5df5e3 (diff)
Fix race between read-ahead and write.
Change-Id: I0ed1aca585733302b5e3840f392849e12f0b0f0d BUG: 783313 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.com/2666 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'xlators/performance/read-ahead/src/read-ahead.h')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.h b/xlators/performance/read-ahead/src/read-ahead.h
index d0bbcde81..f5e73cb66 100644
--- a/xlators/performance/read-ahead/src/read-ahead.h
+++ b/xlators/performance/read-ahead/src/read-ahead.h
@@ -76,7 +76,8 @@ struct ra_page {
struct ra_page *next;
struct ra_page *prev;
struct ra_file *file;
- char dirty;
+ char dirty; /* Internal request, not from user. */
+ char poisoned; /* Pending read invalidated by write. */
char ready;
struct iovec *vector;
int32_t count;