]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_ib: Memory leak on Dom0 with SRIOV.
authorVenkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Thu, 17 Sep 2015 20:16:12 +0000 (13:16 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 04:42:07 +0000 (21:42 -0700)
commit08ec6789a9e36fcc849a5c4e172e599233747aa5
tree050bef7957ea8f9a297260e2f8806d983a880412
parent982af5362e35cd2366eceacade0bf47df3f1667f
mlx4_ib: Memory leak on Dom0 with SRIOV.

There are many scenarios when (using SR-IOV) the connection setup
tunneled from the VM through Dom0 fails for reasons such as the peer
silently dropping the connection requests due to its listener queue being
full or sends back a reject because there is no listener, the id_map_entry
is not freed on the Dom0 causing memory leak.

During testing we encountered a softlockup with multiple CPUs stuck
waiting for sriov->id_map_lock while id_map_ent_timeout was holding it for
a long time. Changing spin_lock(&sriov->id_map_lock) in id_map_ent_timeout
to spin_lock_irqsave resolved this hang.

Orabug: 21675211

Acked-by: Rama Nichanamatlu <rama.nichanamatlu@oracle.com>
Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/cm.c