summaryrefslogtreecommitdiff
path: root/net/sunrpc/Kconfig
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-08-20 01:39:25 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-08-20 18:01:03 +0300
commit36bdd9056b6a83d573ffdde282a5a91ce734c536 (patch)
treea230582aa710250b0800c77df4b7a458b0d085b4 /net/sunrpc/Kconfig
parentaf08a7754a5da7ae704624cbe4ef83e46246c92d (diff)
downloadlinux-36bdd9056b6a83d573ffdde282a5a91ce734c536.tar.xz
xprtrdma: Fix calculation of ri_max_segs again
Commit 302d3deb206 ("xprtrdma: Prevent inline overflow") added this calculation back in 2016, but got it wrong. I tested only the lower bound, which is why there is a max_t there. The upper bound should be rounded up too. Now, when using DIV_ROUND_UP, that takes care of the lower bound as well. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/Kconfig')
0 files changed, 0 insertions, 0 deletions