nvmet-auth: expire authentication sessions
authorHannes Reinecke <hare@suse.de>
Mon, 27 Jun 2022 09:52:07 +0000 (11:52 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 16:20:20 +0000 (18:20 +0200)
commit375e2143d8f411c181eb630dd2f27a21e5a1a6e9
treef66b5de3ae8873bb87c8f78dc4dca91abd1cb349
parent71ebe3842ebe6541bfc080d67df11ea1848edfc1
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>
drivers/nvme/target/auth.c
drivers/nvme/target/fabrics-cmd-auth.c
drivers/nvme/target/nvmet.h