nvme-loop: Fix sqsize wrong assignment based on ctrl MQES capability
authorSagi Grimberg <sagi@grimberg.me>
Thu, 6 Apr 2017 06:15:50 +0000 (09:15 +0300)
committerJens Axboe <axboe@fb.com>
Sun, 9 Apr 2017 19:58:07 +0000 (13:58 -0600)
commit096e9e912ba8c973213e57701e0591e01064be26
treea0df5ec3801d5f5bde2fc82aea2429476b096a56
parent39da7c509acff13fc8cb12ec1bb20337c988ed36
nvme-loop: Fix sqsize wrong assignment based on ctrl MQES capability

both our sqsize and the controller MQES cap are a 0 based value,
so making it 1 based is wrong.

Reported-by: Trapp, Darren <Darren.Trapp@cavium.com>
Reported-by: Daniel Verkamp <daniel.verkamp@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/loop.c