mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
nvme-auth: no need to reset chap contexts on re-authentication
Now that the chap context is reset upon completion, this is no longer needed. Also remove nvme_auth_reset as no callers are left. Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
96df318393
commit
e8a420efb6
@@ -901,19 +901,6 @@ int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(nvme_auth_wait);
|
||||
|
||||
void nvme_auth_reset(struct nvme_ctrl *ctrl)
|
||||
{
|
||||
struct nvme_dhchap_queue_context *chap;
|
||||
|
||||
mutex_lock(&ctrl->dhchap_auth_mutex);
|
||||
list_for_each_entry(chap, &ctrl->dhchap_auth_list, entry) {
|
||||
mutex_unlock(&ctrl->dhchap_auth_mutex);
|
||||
flush_work(&chap->auth_work);
|
||||
nvme_auth_reset_dhchap(chap);
|
||||
}
|
||||
mutex_unlock(&ctrl->dhchap_auth_mutex);
|
||||
}
|
||||
|
||||
static void nvme_ctrl_auth_work(struct work_struct *work)
|
||||
{
|
||||
struct nvme_ctrl *ctrl =
|
||||
|
||||
Reference in New Issue
Block a user