summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server.c
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@redhat.com>2020-03-01 19:49:04 +0100
committerPranith Kumar K <pkarampu@redhat.com>2020-03-02 12:43:55 +0530
commitd0ac63e462a71c267436d0bbc8fa638c39b9c69f (patch)
treeb2a0b33fb87108a44b4289b7e80a4e2372be46a4 /xlators/protocol/server/src/server.c
parent54250605210b91715b3585e2a677870241364ee5 (diff)
cluster/afr: fix race when bricks come up
The was a problem when self-heal was sending lookups at the same time that one of the bricks was coming up. In this case there was a chance that the number of 'up' bricks changes in the middle of sending the requests to subvolumes which caused a discrepancy in the expected number of replies and the actual number of sent requests. This discrepancy caused that AFR continued executing requests before all requests were complete. Eventually, the frame of the pending request was destroyed when the operation terminated, causing a use- after-free issue when the answer was finally received. In theory the same thing could happen in the reverse way, i.e. AFR tries to wait for more replies than sent requests, causing a hang. Change-Id: I7ed6108554ca379d532efb1a29b2de8085410b70 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com> Fixes: bz#1808875
Diffstat (limited to 'xlators/protocol/server/src/server.c')
0 files changed, 0 insertions, 0 deletions