]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth: cache the PK11Context for CryptoAESKeyHandler
authorKefu Chai <tchaikov@gmail.com>
Wed, 25 Apr 2018 15:21:54 +0000 (17:21 +0200)
committerSage Weil <sage@redhat.com>
Thu, 24 May 2018 18:28:14 +0000 (13:28 -0500)
commitc23176e4f987b14fd83ddcd302c131e7dbbcbaa4
tree53555aa33f8df3b406a91cb2a2d483d42767f898
parent741576df15bc5f611886a20ef7ef9fae27687279
auth: cache the PK11Context for CryptoAESKeyHandler

in the flame graph, 0.50% of total time is used by
CephxSessionHandler::check_message_signature(), in which 0.27% is used
by PK11_CreateContextBySymKey(). so we should cache the PK11Context.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit f8c2036f7663be54030e13f1f9c1511cb40070f6)
(cherry picked from commit 7f6751bb5522c00b78d33af402470a659a07d4a3)
src/auth/Crypto.cc