IB/ipoib: Restore MM behavior in case of tx_ring allocation failure
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 13 Dec 2017 10:25:19 +0000 (12:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Dec 2017 17:31:57 +0000 (10:31 -0700)
commit9d98e19ba08f6aa33a4a1414f3dfe8440e67530c
treeacb548ca9679b56978a5bafdb08f85d3e79f85c7
parentc058ecf6e455fac7346d46197a02398ead90851f
IB/ipoib: Restore MM behavior in case of tx_ring allocation failure

memalloc_noio_save modifies the behavior of MM, we must restore it after
we are done.

Fixes: d83187dda9b9 ("IB/IPoIB: Convert IPoIB to memalloc_noio_* calls")
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c