nvme-auth: check chap ctrl_key once constructed
authorSagi Grimberg <sagi@grimberg.me>
Sun, 13 Nov 2022 11:24:18 +0000 (13:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 07:36:36 +0000 (08:36 +0100)
commit546dea18c99928bb81392de63092da0e25d07b10
tree10888e84671401cdc47c071d523dbc621bccc170
parente8a420efb637f52c586596283d6fd96f2a7ecb5c
nvme-auth: check chap ctrl_key once constructed

ctrl ctrl_key member may be overwritten from a sysfs context driven
by the user. Once a queue local copy was created, use that instead
to minimize checks on a shared resource.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c