backchannel_rqst.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | backchannel_rqst.c (2c53040f018b6c36a46eec75b9b937aaa5f78e6d) |
---|---|
1/****************************************************************************** 2 3(c) 2007 Network Appliance, Inc. All Rights Reserved. 4(c) 2009 NetApp. All Rights Reserved. 5 6NetApp provides this source code under the GPL v2 License. 7The GPL v2 license is available at 8http://opensource.org/licenses/gpl-license.php. --- 162 unchanged lines hidden (view full) --- 171 list_for_each_entry_safe(req, tmp, &tmp_list, rq_bc_pa_list) 172 xprt_free_allocation(req); 173 174 dprintk("RPC: setup backchannel transport failed\n"); 175 return -1; 176} 177EXPORT_SYMBOL_GPL(xprt_setup_backchannel); 178 | 1/****************************************************************************** 2 3(c) 2007 Network Appliance, Inc. All Rights Reserved. 4(c) 2009 NetApp. All Rights Reserved. 5 6NetApp provides this source code under the GPL v2 License. 7The GPL v2 license is available at 8http://opensource.org/licenses/gpl-license.php. --- 162 unchanged lines hidden (view full) --- 171 list_for_each_entry_safe(req, tmp, &tmp_list, rq_bc_pa_list) 172 xprt_free_allocation(req); 173 174 dprintk("RPC: setup backchannel transport failed\n"); 175 return -1; 176} 177EXPORT_SYMBOL_GPL(xprt_setup_backchannel); 178 |
179/* 180 * Destroys the backchannel preallocated structures. | 179/** 180 * xprt_destroy_backchannel - Destroys the backchannel preallocated structures. 181 * @xprt: the transport holding the preallocated strucures 182 * @max_reqs the maximum number of preallocated structures to destroy 183 * |
181 * Since these structures may have been allocated by multiple calls 182 * to xprt_setup_backchannel, we only destroy up to the maximum number 183 * of reqs specified by the caller. | 184 * Since these structures may have been allocated by multiple calls 185 * to xprt_setup_backchannel, we only destroy up to the maximum number 186 * of reqs specified by the caller. |
184 * @xprt: the transport holding the preallocated strucures 185 * @max_reqs the maximum number of preallocated structures to destroy | |
186 */ 187void xprt_destroy_backchannel(struct rpc_xprt *xprt, unsigned int max_reqs) 188{ 189 struct rpc_rqst *req = NULL, *tmp = NULL; 190 191 dprintk("RPC: destroy backchannel transport\n"); 192 193 BUG_ON(max_reqs == 0); --- 88 unchanged lines hidden --- | 187 */ 188void xprt_destroy_backchannel(struct rpc_xprt *xprt, unsigned int max_reqs) 189{ 190 struct rpc_rqst *req = NULL, *tmp = NULL; 191 192 dprintk("RPC: destroy backchannel transport\n"); 193 194 BUG_ON(max_reqs == 0); --- 88 unchanged lines hidden --- |