]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: only calculate op crush mapping if we don't have the PG 6371/head
authorSage Weil <sage@redhat.com>
Sat, 24 Oct 2015 22:01:06 +0000 (18:01 -0400)
committerSage Weil <sage@redhat.com>
Sat, 24 Oct 2015 22:01:06 +0000 (18:01 -0400)
commit45ab728cd895c83f1fbc2679135af4eeb9c6610e
tree92c831745253f7c77f205ace3781ab2388d15063
parentaed2e87e80b485dc5e6b087404eef9aa722151ec
osd: only calculate op crush mapping if we don't have the PG

We were pessimistically calculating the request mapping to ensure
that it is really meant for us before looking up the PG.  Instead,
look up the PG, and queue it there if we have it--the PG already
does the necessary checks in PG::can_discard_op().  If we
don't have the PG, *then* do the crush mapping and extra checks.

Reported-by: Somnath Roy <somnath.roy@sandisk.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc