]> www.infradead.org Git - users/hch/block.git/commit
nvme-target: do not check authentication status for admin commands twice
authorHannes Reinecke <hare@kernel.org>
Mon, 22 Jul 2024 12:02:26 +0000 (14:02 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 22 Aug 2024 20:25:11 +0000 (13:25 -0700)
commitff4a0a4088adc6a37293a9cce25bb56ad2f26a16
tree91a45674c3b24761b034a93a6c674057ebf47b32
parentbb2df18958b4287104c38541cf48c4a60c90e721
nvme-target: do not check authentication status for admin commands twice

nvmet_check_ctrl_status() checks the authentication status, so
we don't need to do that prior to calling it.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/admin-cmd.c