/* Put reply buffers back into pool when not attached to request. This happens in error conditions, and when aborting unbinds. Pre-decrement counter/array index.  */
void rpcrdma_recv_buffer_put(struct rpcrdma_rep *rep)
/* Put reply buffers back into pool when not attached to request. This happens in error conditions, and when aborting unbinds. Pre-decrement counter/array index.  */
void rpcrdma_recv_buffer_put(struct rpcrdma_rep *rep)
{
	struct rpcrdma_buffer *buffers = rep->rr_buffer;
	unsigned long flags;
	rep->rr_func = NULL;
	spin_lock_irqsave(&buffers->rb_lock, flags);
	buffers->rb_recv_bufs[--buffers->rb_recv_index] = rep;
	spin_unlock_irqrestore(&buffers->rb_lock, flags);
}