These are not really errors and ignoring these error codes can
cause potential problems.
Propagating these errors to high-level callers such as execute_ctx()
where they can be taken good care of should instead be the preferred
option.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
fail:
osd_op.rval = result;
tracepoint(osd, do_osd_op_post, soid.oid.name.c_str(), soid.snap.val, op.op, ceph_osd_op_name(op.op), op.flags, result);
- if (result < 0 && (op.flags & CEPH_OSD_OP_FLAG_FAILOK))
+ if (result < 0 && (op.flags & CEPH_OSD_OP_FLAG_FAILOK) &&
+ result != -EAGAIN && result != -EINPROGRESS)
result = 0;
if (result < 0)