aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorGravatar Sagi Grimberg <sagi@grimberg.me> 2022-11-13 13:24:20 +0200
committerGravatar Christoph Hellwig <hch@lst.de> 2022-11-16 08:36:36 +0100
commitaa36d711e945e65fa87410927800f01878a8faed (patch)
tree308d2023e10db00934cc1a631f20951829b38906 /.gitattributes
parentnvme-auth: check chap ctrl_key once constructed (diff)
downloadlinux-aa36d711e945e65fa87410927800f01878a8faed.tar.gz
linux-aa36d711e945e65fa87410927800f01878a8faed.tar.bz2
linux-aa36d711e945e65fa87410927800f01878a8faed.zip
nvme-auth: convert dhchap_auth_list to an array
We know exactly how many dhchap contexts we will need, there is no need to hold a list that we need to protect with a mutex. Convert to a dynamically allocated array. And dhchap_context access state is maintained by the chap itself. Make dhchap_auth_mutex protect only the ctrl host_key and ctrl_key in a fine-grained lock such that there is no long lasting acquisition of the lock and no need to take/release this lock when flushing authentication works. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions