diff options
author | Minwoo Im <minwoo.im.dev@gmail.com> | 2017-12-20 16:30:50 +0900 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-12-29 10:31:04 +0100 |
commit | 955b1b5a00ba694159a7d3763412597f707c294d (patch) | |
tree | 84c57107b104ec0174f39b925a4a500b0d676761 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | 6d0e4827b72afc71349784336d5eb6df4df106e6 (diff) | |
download | linux-955b1b5a00ba694159a7d3763412597f707c294d.tar.gz linux-955b1b5a00ba694159a7d3763412597f707c294d.tar.xz |
nvme-pci: move use_sgl initialization to nvme_init_iod()
A flag "use_sgl" of "struct nvme_iod" has been used in nvme_init_iod()
without being set to any value. It seems like "use_sgl" has been set
in either nvme_pci_setup_prps() or nvme_pci_setup_sgls() which occur
later than nvme_init_iod().
Make "iod->use_sgl" being set in a proper place, nvme_init_iod().
Also move nvme_pci_use_sgls() up above nvme_init_iod() to make it
possible to be called by nvme_init_iod().
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions