nvme-pci: clamp max_hw_sectors based on DMA optimized limitation
Merge Request Required Information
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168169 Upstream Status: From upstream linux mainline Signed-off-by: Ewan D. Milne emilne@redhat.com
Summary of Changes
Change to use DMA optimal size limit instead of maximum when setting max_sectors_kb, avoids using large transfer sizes which cause problems with machines such as AMD servers w/IOMMU
Approved Development Ticket
All submissions to CentOS Stream must reference an approved ticket in Red Hat Jira. Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.
Edited by Ewan D. Milne