Skip to content
Commit 77d651a6 authored by Adam Manzanares's avatar Adam Manzanares Committed by Christoph Hellwig
Browse files

nvmet: looks at the passthrough controller when initializing CAP



For a passthru controller make cap initialization dependent on the cap of
the passthru controller, given that multiple Command Set support needs
to be supported by the underlying controller.  For that move the
initialization of CAP later so that it can use the fully initialized
nvmet_ctrl structure.

Fixes: ab5d0b38 (nvmet: add Command Set Identifier support)
Signed-off-by: default avatarAdam Manzanares <a.manzanares@samsung.com>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
[hch: refactored the code a bit to keep it more contained in passthru.c]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 43dc9878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment