transport.c (bd1722d4316e42a12fe6337ebe34d7e1e2c088b2) transport.c (e204e621b4160c802315bc2d0fa335337c0d62e8)
1/*
2 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the BSD-type
8 * license below:

--- 237 unchanged lines hidden (view full) ---

246 rc = rpcrdma_ep_destroy(&r_xprt->rx_ep, &r_xprt->rx_ia);
247 if (rc)
248 dprintk("RPC: %s: rpcrdma_ep_destroy returned %i\n",
249 __func__, rc);
250 rpcrdma_ia_close(&r_xprt->rx_ia);
251
252 xprt_rdma_free_addresses(xprt);
253
1/*
2 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the BSD-type
8 * license below:

--- 237 unchanged lines hidden (view full) ---

246 rc = rpcrdma_ep_destroy(&r_xprt->rx_ep, &r_xprt->rx_ia);
247 if (rc)
248 dprintk("RPC: %s: rpcrdma_ep_destroy returned %i\n",
249 __func__, rc);
250 rpcrdma_ia_close(&r_xprt->rx_ia);
251
252 xprt_rdma_free_addresses(xprt);
253
254 kfree(xprt->slot);
255 xprt->slot = NULL;
256 kfree(xprt);
254 xprt_free(xprt);
257
258 dprintk("RPC: %s: returning\n", __func__);
259
260 module_put(THIS_MODULE);
261}
262
263static const struct rpc_timeout xprt_rdma_default_timeout = {
264 .to_initval = 60 * HZ,

--- 131 unchanged lines hidden (view full) ---

396out4:
397 xprt_rdma_free_addresses(xprt);
398 rc = -EINVAL;
399out3:
400 (void) rpcrdma_ep_destroy(new_ep, &new_xprt->rx_ia);
401out2:
402 rpcrdma_ia_close(&new_xprt->rx_ia);
403out1:
255
256 dprintk("RPC: %s: returning\n", __func__);
257
258 module_put(THIS_MODULE);
259}
260
261static const struct rpc_timeout xprt_rdma_default_timeout = {
262 .to_initval = 60 * HZ,

--- 131 unchanged lines hidden (view full) ---

394out4:
395 xprt_rdma_free_addresses(xprt);
396 rc = -EINVAL;
397out3:
398 (void) rpcrdma_ep_destroy(new_ep, &new_xprt->rx_ia);
399out2:
400 rpcrdma_ia_close(&new_xprt->rx_ia);
401out1:
404 kfree(xprt->slot);
405 kfree(xprt);
402 xprt_free(xprt);
406 return ERR_PTR(rc);
407}
408
409/*
410 * Close a connection, during shutdown or timeout/reconnect
411 */
412static void
413xprt_rdma_close(struct rpc_xprt *xprt)

--- 371 unchanged lines hidden ---
403 return ERR_PTR(rc);
404}
405
406/*
407 * Close a connection, during shutdown or timeout/reconnect
408 */
409static void
410xprt_rdma_close(struct rpc_xprt *xprt)

--- 371 unchanged lines hidden ---