nvme: set the queue limits in nvme_update_ns_info
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 10:05:28 +0000 (12:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:18 +0000 (07:56 +0200)
commit658d9f7c2c7044f9978623e7f429b85bbb7553a3
tree5d739d0262eeb04295d5663a5a5bc76e275d4c21
parent310b30e575b1e2b9a569c3582062b79c5a562fb7
nvme: set the queue limits in nvme_update_ns_info

Only set the queue limits once we have the real block size.  This also
updates the limits on a rescan if needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/nvme/host/core.c