]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: add busy_list only when fmr allocated successfully
authorWengang Wang <wen.gang.wang@oracle.com>
Mon, 7 Sep 2015 08:42:44 +0000 (16:42 +0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Thu, 17 Sep 2015 00:07:26 +0000 (17:07 -0700)
commitf48c42377be932a6c2a60eb111e2e0f154f33d8c
tree4dab64dbc2136870e6456bae5c743a6b7ab83975
parentceb99ba579a769f4e02375a3d52e36f44ae5f27f
rds: add busy_list only when fmr allocated successfully

The rdma layer ibmr is always added to busy list of the pool after
memory is allocated.  In case the lower layer fmr allocation fails,
it should be removed from the busy list before memoryis freed but
it wasn't. Thus the freed ibmr is left in busy list, and the busy list
gets into unstable state.

Fix is to add busy_list only when fmr is allocated successfully

Orabug: 21795840

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Reviewed-by: Chien Yen <chien.yen@oracle.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
net/rds/ib_rdma.c