]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth/cephx: optimize signature check
authorSage Weil <sage@redhat.com>
Thu, 22 Jan 2015 23:49:25 +0000 (15:49 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 8 Jan 2016 21:33:04 +0000 (13:33 -0800)
commit3249f48a07391c98634aebd87f18fc2edbe95ca2
tree1aad6accd23ce677a54fb63c17478ca833988120
parent51eaf98e25287705c9c25d2d3a5df248ba066f2d
auth/cephx: optimize signature check

The encode_encrypt() helper will generate a bufferlist with a simple
structure.  Profiles seem to indicate this is taking a large amount of time
in the message receive path.

Avoid the encode overhead since we have a tiny buffer with a fixed and
known structure.

Reported-by: Andreas Bluemle <andreas.bluemle@itxperts.de>
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8d16d4ce14a82356007c14fb7535170933eb7812)
src/auth/cephx/CephxSessionHandler.cc