diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2013-11-09 13:44:18 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-01-25 08:53:01 -0800 |
commit | a10100a4b8501d15c83b416b932d8d786ea550fb (patch) | |
tree | 2901e2ca6560b3b8d212d2827c63f76493efdf3d /rpc/rpc-transport | |
parent | 49eb5ea29cf8d6eab0c5f60d70fe8d6a0113b61e (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>
Diffstat (limited to 'rpc/rpc-transport')
0 files changed, 0 insertions, 0 deletions