summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-inode-write.c
diff options
context:
space:
mode:
authorXavier Hernandez <jahernan@redhat.com>2017-11-22 11:10:32 +0100
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-11-28 09:11:45 +0000
commitc471636264040d84e0f21f5a26f61746aa65975a (patch)
tree66649538dc7ecf1c7a5791a483a95974bcbd186b /xlators/cluster/ec/src/ec-inode-write.c
parenteba88aed7d2813bfccd1455d4148c4f25d9d0e48 (diff)
cluster/ec: Prevent self-heal to work after PARENT_DOWN
When the volume is being stopped, PARENT_DOWN event is received. This instructs EC to wait until all pending operations are completed before declaring itself down. However heal operations are ignored and allowed to continue even after having said it was down. This may cause unexpected results and crashes. To solve this, heal operations are considered exactly equal as any other operation and EC won't propagate PARENT_DOWN until all operations, including healing, are complete. To avoid big delays if this happens in the middle of a big heal, a check has been added to quit current heal if shutdown is detected. Change-Id: I26645e236ebd115eb22c7ad4972461111a2d2034 BUG: 1515266 Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-inode-write.c')
0 files changed, 0 insertions, 0 deletions