]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: count all ANA groups for ANA Log page
authorHannes Reinecke <hare@suse.de>
Mon, 16 Jul 2018 10:58:33 +0000 (12:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 17 Sep 2018 13:49:40 +0000 (15:49 +0200)
commite5502575968bb8f7ba18e5859fae8e3876f1b58a
treebe8593a04dc35a6a369067e13017f73e5bb24a74
parentd7a8729fd3160b882bce15c05c58af885aed20cc
nvme: count all ANA groups for ANA Log page

When issuing a short read on the ANA log page the number of groups
should not change, even though the final returned data might contain
less groups than that number.

Signed-off-by: Hannes Reinecke <hare@suse.com>
[switched to a for loop]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c