]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-auth: expire authentication sessions
authorHannes Reinecke <hare@suse.de>
Mon, 27 Jun 2022 09:52:07 +0000 (11:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:50 +0000 (17:14 -0600)
commitc31432854a3a49af4613d5690d82bf2dda6ead99
treef79b74b21a04789116da60920fe1134943087037
parentcd18b086ddb1438cc47ef11410a0cddd7caa0938
nvmet-auth: expire authentication sessions

Each authentication step is required to be completed within the
KATO interval (or two minutes if not set). So add a workqueue function
to reset the transaction ID and the expected next protocol step;
this will automatically the next authentication command referring
to the terminated authentication.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/auth.c
drivers/nvme/target/fabrics-cmd-auth.c
drivers/nvme/target/nvmet.h