qp_info = mad_agent_priv->qp_info; 
qp_info = mad_send_wr->mad_agent_priv->qp_info; 
static int ib_send_mad(struct ib_mad_agent_private *mad_agent_priv,		       struct ib_mad_send_wr_private *mad_send_wr){	struct ib_mad_qp_info *qp_info;	struct ib_send_wr *bad_send_wr;	unsigned long flags;	int ret;	/* Set WR ID to find mad_send_wr upon completion */	qp_info = mad_agent_priv->qp_info;	mad_send_wr->send_wr.wr_id = (unsigned long)&mad_send_wr->mad_list;	mad_send_wr->mad_list.mad_queue = &qp_info->send_queue;	spin_lock_irqsave(&qp_info->send_queue.lock, flags);	if (qp_info->send_queue.count++ < qp_info->send_queue.max_active) {		list_add_tail(&mad_send_wr->mad_list.list,			      &qp_info->send_queue.list);		spin_unlock_irqrestore(&qp_info->send_queue.lock, flags);		ret = ib_post_send(mad_agent_priv->agent.qp,				   &mad_send_wr->send_wr, &bad_send_wr);		if (ret) {			printk(KERN_ERR PFX "ib_post_send failed: %d\n", ret);			dequeue_mad(&mad_send_wr->mad_list);		}	} else {		list_add_tail(&mad_send_wr->mad_list.list,			      &qp_info->overflow_list);		spin_unlock_irqrestore(&qp_info->send_queue.lock, flags);		ret = 0;	}	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d760ce8f71ec5336c4a750a1293f26c0eb938c8a/mad.c/buggy/drivers/infiniband/core/mad.c