diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2019-09-21 22:58:19 +0200 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-09-25 21:53:14 +0200 |
commit | ff13c1b87c97275b82b2af99044b4abf6861b28f (patch) | |
tree | c44d1ce981f620b454b97b22bf0fca617561ce49 /init | |
parent | nvme: fix an error code in nvme_init_subsystem() (diff) | |
download | linux-ff13c1b87c97275b82b2af99044b4abf6861b28f.tar.xz linux-ff13c1b87c97275b82b2af99044b4abf6861b28f.zip |
nvme-rdma: Fix max_hw_sectors calculation
By default, the NVMe/RDMA driver should support max io_size of 1MiB (or
upto the maximum supported size by the HCA). Currently, one will see that
/sys/class/block/<bdev>/queue/max_hw_sectors_kb is 1020 instead of 1024.
A non power of 2 value can cause performance degradation due to
unnecessary splitting of IO requests and unoptimized allocation units.
The number of pages per MR has been fixed here, so there is no longer any
need to reduce max_sectors by 1.
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions