summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2013-11-09 13:44:18 +0530
committerVijay Bellur <vbellur@redhat.com>2014-01-28 08:49:30 -0800
commit7a871c27f7dedfbd228aac4c2eefd6b829aa619c (patch)
treecda657c456d06f3fd34b2dee00415c384f76f246 /contrib
parente0c07e6474956bc90449f36e4cc953dfe35a6fa4 (diff)
features/quota: maintain correct link_count in ancestry building
codepath. Ancestry building codepath can be executed simultaneously when a file has hardlinks. So, following fixes are needed: * modify local->link_count under locks in ancestry building codepath. * before invoking check_limit on newly constructed parents, link_count should not be set, but instead incremented by as many number of new invocations of check_limit. * decrementing link_count and the check whether the count has hit zero to resume the waiting call_stub should be atomic. Change-Id: I6f52e50547362a5ded6bd9f085570223aea372d1 BUG: 969461 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/6491 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/6819
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions