nvme: don't query identify data in configure_metadata
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:56 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:56 +0000 (08:24 -0800)
commite5ea00a510c61e9e809a1f13286ac802bbe724a7
tree592d38df7133070543b589566b8ccf43801a0dd6
parentc6fce9f12764c11ab6ff34f4cb0dec06d4d87099
nvme: don't query identify data in configure_metadata

Move reading the Identify Namespace Data Structure, NVM Command Set out
of configure_metadata into the caller.  This allows doing the identify
call outside the frozen I/O queues, and prepares for using data from
the Identify data structure for other purposes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c