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)
commit120bb3624d55d65145f7c1bf12a839fd323cde29
tree56e815ff92cfe10c3aecf1ec548534ba1c6cd01e
parent6485fc18faa01e8845b1e5bb55118e633f84d1f2
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