nvme-loop: initialize sqsize later
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Sep 2022 15:26:18 +0000 (17:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 12:44:17 +0000 (14:44 +0200)
commit379e0df5ab2c46e52e7ca2273d1238526631aa4f
tree4da9063b6657d16734cb563165a4a58eb8f924e7
parent6dfba1c09c109f4a6ca12e156dbdbe27e0924862
nvme-loop: initialize sqsize later

Defer initializing the sqsize field from the options until it has been
capped by MAXCMD.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/target/loop.c