]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvme: set the chunk size before freezing the queue
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Nov 2017 18:28:55 +0000 (21:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit6e78f21ae4488cdab4318f781de05c8ffc4de951
tree2be60c2b64356b2bfc25f39c3efafb2ee77e375f
parent30e5e929c7bfaf87a65f926715773ef14339b79f
nvme: set the chunk size before freezing the queue

We don't need a frozen queue to update the chunk_size, which just is a
hint, and moving it a little earlier will allow for some better code
reuse with the multipath code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c