nvmet: Cleanup discovery execute handlers
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Oct 2019 16:35:42 +0000 (10:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:41 +0000 (10:56 -0700)
commit6f86f2c9d94d55c4d3a6f1ffbc2e1115b5cb38a8
tree86cb4d413a8c97944699160dfb859dae57047591
parent2cb6963a16e9e114486decf591af7cb2d69cb154
nvmet: Cleanup discovery execute handlers

Push the lid and cns check into their respective handlers and, while
we're at it, rename the functions to be consistent with other
discovery handlers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[split patch, update changelog]
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/discovery.c