diff options
author | Sathyavathi M <sathya.m@samsung.com> | 2015-11-05 12:52:28 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-11 09:36:56 -0700 |
commit | b12363d0a5da00c422641f3d926fffb713192ea3 (patch) | |
tree | 591c9e774d2bf3516913766ce26e90f8f3b690f9 | |
parent | 2dbe5495763612f7c1b68fc897cd28c9e22079b8 (diff) | |
download | blackbird-op-linux-b12363d0a5da00c422641f3d926fffb713192ea3.tar.gz blackbird-op-linux-b12363d0a5da00c422641f3d926fffb713192ea3.zip |
NVMe: Increase the max transfer size when mdts is 0
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>
-rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 3dfc28875cc3..cb89789df40c 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2622,6 +2622,8 @@ static int nvme_dev_add(struct nvme_dev *dev) memcpy(dev->firmware_rev, ctrl->fr, sizeof(ctrl->fr)); if (ctrl->mdts) dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9); + else + dev->max_hw_sectors = UINT_MAX; if ((pdev->vendor == PCI_VENDOR_ID_INTEL) && (pdev->device == 0x0953) && ctrl->vs[3]) { unsigned int max_hw_sectors; |