]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: do not send ENXIO on misdirected op by default 13255/head
authorSage Weil <sage@redhat.com>
Fri, 3 Feb 2017 22:40:29 +0000 (17:40 -0500)
committerSage Weil <sage@redhat.com>
Fri, 3 Feb 2017 22:40:29 +0000 (17:40 -0500)
commit78d296b076a284e35ef4bae931756e7d17a5c09d
treef8d5fd18fa37d27c8e599e56d279c0c0c1e0c079
parent84a0fdb8b464734a58bfc98edb010f1278fa25f2
osd: do not send ENXIO on misdirected op by default

In practice this tends to get bubbled up the stack as an error on
the caller, and they usually do not handle it properly.  For example,
with librbd, this turns into EIO and break the VM.

Instead, this will manifest as a hung op on the client.  That is
also not ideal, but given that the root cause here is generally a
bug, it's not clear what else would be better.

We already log an error in the cluster log, so teuthology runs will
continue to fail.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 923e7f5ce5ed437af15e178299a61029ff48e4a2)

# Conflicts:
# PendingReleaseNotes
# src/common/config_opts.h
PendingReleaseNotes
src/common/config_opts.h
src/osd/OSD.cc