summaryrefslogtreecommitdiffstats
path: root/xlators/Makefile.am
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-05-04 02:29:22 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-04 03:32:05 -0700
commit3954ddddfe6c600ff2bb8d70463bc6fb4fe67225 (patch)
tree46bdee638be2747219aa48f1ac1493d351aa4957 /xlators/Makefile.am
parentbb4955c4e12618171ae69c4161db709ff7d29981 (diff)
performance/read-ahead: don't set ra_file in fd->ctx unless all memebers of ra_file is initialized
- If ptr to ra_file is set in fd->ctx even before initializing all its members, A race condition may occur b/w a thread executing ra_fstat, ra_readv etc (where all files open on the same inode are flushed) and the thread doing initialization of ra_file (in ra_open_cbk or ra_create_cbk). Because of this race-condition, flush_region might be called on an uninitialized ra_file, thereby causing crash. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 868 (crash in ra_fstat) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=868
Diffstat (limited to 'xlators/Makefile.am')
0 files changed, 0 insertions, 0 deletions