]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: verify MNAN value if ANA is enabled
authorDaniel Wagner <dwagner@suse.de>
Mon, 7 Jun 2021 08:56:56 +0000 (10:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Jun 2021 03:36:15 +0000 (05:36 +0200)
commit4d734736017f22cd7bd8595de7c54fccd6011f11
tree56e815ff92cfe10c3aecf1ec548534ba1c6cd01e
parente8d1272ad994051008cbb568d69aff09059de1eb
nvme: verify MNAN value if ANA is enabled

The controller is required to have a non-zero MNAN value if it supports
ANA:

   If the controller supports Asymmetric Namespace Access Reporting, then
   this field shall be set to a non-zero value that is less than or equal
   to the NN value.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c