From: Santosh Shilimkar Date: Tue, 17 May 2016 21:46:18 +0000 (-0700) Subject: RDS: IB: disable ib_cache purging to avoid memory leak in reconnect path X-Git-Tag: v4.1.12-92~159^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=11f0ba4e170063ce17d97136455f89680844b24c;p=users%2Fjedix%2Flinux-maple.git RDS: IB: disable ib_cache purging to avoid memory leak in reconnect path RDS IB caches don't work in reconnect path and if used can lead to memory leaks. These leaks have been there for long time but we didn't hit them since caches are not teardown in reconnect path. For different frag rolling upgrade/downgrade support, its needed to work in reconnect path but needs additional fixes. Since the leak is blocking rest of the testing, temporary the cache purging is disabled. It will be added back once fully fixed. Orabug: 23275911 The change doesn't impact any of the existing RDS functionality. Tested-by: Hong Liu Signed-off-by: Santosh Shilimkar --- diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index 83baf19f4275..f06a241a7810 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -1394,9 +1394,6 @@ void rds_ib_conn_shutdown(struct rds_connection *conn) reinit_completion(&ic->i_last_wqe_complete); - /* Purge the ic->i_cache_frags */ - rds_ib_recv_purge_frag_cache(ic); - ic->i_active_side = 0; }