]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: rds: fix rds_ib_sysctl_max_recv_allocation error
authorZhu Yanjun <yanjun.zhu@oracle.com>
Wed, 26 Dec 2018 00:33:02 +0000 (19:33 -0500)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 Jan 2019 15:42:01 +0000 (10:42 -0500)
commitb3d40d4d602e4ab558fefa9a5749d1bd2d6d4e24
tree9850e107b1113216806ab1568d6022951f935be2
parent06eac7d086259b1a15460175f17270c443b62493
net: rds: fix rds_ib_sysctl_max_recv_allocation error

Before the commit c682e8474bd4 ("net/rds: reduce memory footprint
during ib_post_recv in IB transport"), rds_ib_allocation increases
by one. So the function atomic_add_unless will work. After the commit,
rds_ib_allocation increases by 4 if the frag is 16K. Then
atomic_add_unless will not work.

Fixes: c682e8474bd4 ("net/rds: reduce memory footprint during ib_post_recv in IB transport")
Orabug: 28947481

Change-Id: Ib032cd170d28e403a888c86124b67892b25ed5a5
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reported-by: Joe Jin <joe.jin@oracle.com>
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/ib_recv.c