diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-05-01 23:40:43 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-05-07 23:03:47 -0700 |
commit | ee744e0908dca3c954f6b6a922dd48f6f6e8cbc6 (patch) | |
tree | 3094c4fa6d5c684f789e28634d9e1e7abb6f49ed /xlators/cluster/dht/src/dht-diskusage.c | |
parent | bf5c0efdec755297a976a6253665431d700d0737 (diff) |
performance/write-behind: initialize lock in wb-file before wb-file is set in fd-ctx.v3.0.8qa1v3.0.8
- Consider a combination of fuse->quick-read->read-ahead->wb->client.
quick-read can do open-behind (open is returned as success even
before it is issued to backend) and hence the fd can already be
in the list of open fds of the inode. A flush call on some other
fd opened on the same inode, will result in ra_flush issuing flush
calls to all the fds opened on the same inode. This can result in
wb_flush trying to hold a lock on non-initialized lock there by causing
memory corruption.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@gluster.com>
BUG: 2679 (Crash in GlusterFS 3.0.5 in GSP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2679
Diffstat (limited to 'xlators/cluster/dht/src/dht-diskusage.c')
0 files changed, 0 insertions, 0 deletions