OSDN Git Service

nvme-auth: have dhchap_auth_work wait for queues auth to complete
authorSagi Grimberg <sagi@grimberg.me>
Sun, 13 Nov 2022 11:24:22 +0000 (13:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 07:36:36 +0000 (08:36 +0100)
commitd061a1bd1fff5332ee48601947abb414007a9610
treef834d091f134f08115b6dce7f391a1bb612d571c
parenta2a00d2a66e480c8b225012db538dca6e389a92d
nvme-auth: have dhchap_auth_work wait for queues auth to complete

It triggered the queue authentication work elements in parallel, but
the ctrl authentication work itself completes when all of them
completes. Hence wait for queues auth completions.

This also makes nvme_auth_stop simply a sync cancel of ctrl
dhchap_auth_work.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c