]> git.apps.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)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 18 May 2018 14:48:32 +0000 (10:48 -0400)
commit7f6751bb5522c00b78d33af402470a659a07d4a3
tree5ca796bcaceb6d62fe08abdd9559cc4370fe0588
parentbd982ed0780633c6df6188ed3397d674e94d338e
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)
src/auth/Crypto.cc