Skip to contentSkip to conversation

Increase the max transfer size when mdts is 0

PATCH New Sathyavathi M 2 participants 2 messages Sep 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Increase the max transfer size when mdts is 0

From: Sathyavathi M <[email protected]>

This patch address the issue when IO with 128KB from FIO is splitted as two parts, 124KB and 4KB due to max transfer size(127KB).This degrades the device performance.

Signed-off-by Sathyavathi M <sathya.m at samsung.com>
---
 drivers/block/nvme-core.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/block/nvme-core.c +2 -0
index b97fc3f..9bf6ea5 100644
@@ -2479,6 +2479,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;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 Increase the max transfer size when mdts is 0

Quoted 7 lines · Sathyavathi M

From: Sathyavathi M <sathya.m at samsung.com>

This patch address the issue when IO with 128KB from FIO is splitted as two parts, 124KB and 4KB due to max transfer size(127KB).This degrades the device performance.

Signed-off-by Sathyavathi M <sathya.m at samsung.com>
Acked-by Keith Busch <keith.busch at intel.com>