]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: IB: rebuild receive caches when needed
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 18 May 2016 17:44:56 +0000 (10:44 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 27 May 2016 16:31:16 +0000 (09:31 -0700)
commitfb060398515c13d592ccd49f3a6263f9062ae728
tree02aab3f02bfbf31c015b23be417770001c649ed9
parent8824b718d88a718a43529c9bc9d2cb3c6061737e
RDS: IB: rebuild receive caches when needed

RDS IB caches code leaks memory & it have been there from the
inception of cache code but we didn't noticed them since caches
are not teardown in normal operation paths. But now to support
features like variable fragment or connection destroy for ACL,
caches needs to be destroyed and rebuild if needed.

While freeing the caches is just fine, leaking memory while
doing that is bug and needs to be addressed. Thanks to Wengang
for spotting this stone age leak. Also the cache rebuild needs
to be done only when desired so patch optimises that part as
well.

Tested-by: Michael Nowak <michael.nowak@oracle.com>
Tested-by: Maria Rodriguez <maria.r.rodriguez@oracle.com>
Tested-by: Hong Liu <hong.x.liu@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/ib.h
net/rds/ib_cm.c
net/rds/ib_recv.c