]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
NVMe: Increase the max transfer size when mdts is 0
authorSathyavathi M <sathya.m@samsung.com>
Thu, 5 Nov 2015 19:52:28 +0000 (12:52 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:32:04 +0000 (16:32 -0700)
This patch address the issue when IO with 128KB from FIO is split into
two parts, 124KB and 4KB, due to max transfer size(127KB). This degrades
the device performance.

Signed-off-by: Sathyavathi M <sathya.m@samsung.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit b12363d0a5da00c422641f3d926fffb713192ea3)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
Conflicts:
drivers/nvme/host/pci.c

drivers/nvme/host/pci.c

index c56a83f734c48874ee33999f20181b5abb2fb9d0..9eedc257c7a518dbdf5d1e2b91ce27db42130da4 100644 (file)
@@ -2486,7 +2486,7 @@ static int nvme_dev_add(struct nvme_dev *dev)
        if (ctrl->mdts)
                dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9);
        else
-                dev->max_hw_sectors = 512 * 1024 / 512;
+               dev->max_hw_sectors = UINT_MAX;
 
        if ((pdev->vendor == PCI_VENDOR_ID_INTEL) &&
                        (pdev->device == 0x0953) && ctrl->vs[3]) {