aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorChengguang Xu <[email protected]>2018-06-20 15:42:55 +0800
committerIlya Dryomov <[email protected]>2018-08-02 21:26:11 +0200
commitf017754d6919f3bd9786710b07b4708293594f20 (patch)
treefc4fd28fdc63468a6ce162ba49fb623f742b3ffd /tools/perf/scripts/python/net_dropmonitor.py
parentacb1872577b346bd15ab3a3f8dff780d6cca4b70 (diff)
ceph: add retry logic for error -ERANGE in ceph_get_acl()
When the size of acl extended attribution is larger than pre-allocated value buffer size, we will hit error '-ERANGE' and it's probabaly caused by concurrent get/set acl from different clients. In this case, current logic just sets acl to NULL so that we cannot get proper information but the operation looks successful. This patch adds retry logic for error -ERANGE and return -EIO if fail from the retry. Additionally, print real errno when failing from __ceph_getxattr(). Signed-off-by: Chengguang Xu <[email protected]> Reviewed-by: "Yan, Zheng" <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions