]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: do not send ENXIO on misdirected op by default 13253/head
authorSage Weil <sage@redhat.com>
Fri, 3 Feb 2017 22:38:05 +0000 (17:38 -0500)
committerSage Weil <sage@redhat.com>
Fri, 3 Feb 2017 22:38:05 +0000 (17:38 -0500)
commitaf2af7015adb0e6617da619ffe89e70e0904fcec
tree4f5f41672a1916fa7845de04fdd22a731c146a7e
parentce8edcfed6cd908779efd229202eab1232d16f1c
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
PendingReleaseNotes
src/common/config_opts.h
src/osd/OSD.cc