[PATCH] nvme-pci: calculate iod and avg_seg_size just before use them

Keith Busch keith.busch at intel.com
Thu Jan 11 07:48:58 PST 2018


On Thu, Jan 11, 2018 at 01:09:39PM +0800, Jianchao Wang wrote:
> The calculation of iod and avg_seg_size maybe meaningless if
> nvme_pci_use_sgls returns before uses them. So calculate
> just before use them.

The compiler will do the right thing here, but I see what you mean. I
think Christoph has some SGL improvements coming, though, that will
obviate this.



More information about the Linux-nvme mailing list