nvme-pci: remove nvme_init_iod
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2019 15:04:01 +0000 (08:04 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit9b048119a153590b934ef49aae309b723587f527
tree29466673f8c65c5dd11b138c2f6e1ea68789bc12
parent3ab3a0313cb8c50391d74e40fd46a3408d8e4de9
nvme-pci: remove nvme_init_iod

nvme_init_iod should really be split into two parts: initialize a few
general iod fields, which can easily be done at the beginning of
nvme_queue_rq, and allocating the scatterlist if needed, which logically
belongs into nvme_map_data with the code making use of it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
drivers/nvme/host/pci.c