RDS: Don't destroy the rdma id until after we're done using it
authorSantosh Shilimkar <ssantosh@kernel.org>
Sat, 22 Aug 2015 22:45:32 +0000 (15:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 20:35:31 +0000 (13:35 -0700)
commit1c3be624f40acd6f2bd0f22ade081ac2467e8617
tree6ac790494da86e1b1a25adc179aefcb81546bf25
parent5c240fa2ab394af1dbde280e00cc038cbc7f0409
RDS: Don't destroy the rdma id until after we're done using it

During connection resets, we are destroying the rdma id too soon. We can't
destroy it when it is still in use. So lets move rdma_destroy_id() after
we clear the rings.

Reviewed-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_cm.c