]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: add minimal ANA support
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jul 2018 14:35:20 +0000 (07:35 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Jul 2018 17:13:02 +0000 (19:13 +0200)
commit5e3a59e5f2ed609127492cee6a26a59c748d839c
tree0505847a47806f6d0ac9feed9ae081fe8d55c381
parent44e2c23dd18878a6bf90f4f92bf8311a7cca9345
nvmet: add minimal ANA support

Add support for Asynchronous Namespace Access as specified in NVMe 1.3
TP 4004.

Just add a default ANA group 1 that is optimized on all ports.  This is
(and will remain) the default assignment for any namespace not epxlicitly
assigned to another ANA group.  The ANA state can be manually changed
through the configfs interface, including the change state.

Includes fixes and improvements from Hannes Reinecke.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/configfs.c
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h