/* ipath_free_lkey - free an lkey @rkt: table from which to free the lkey @lkey: lkey id to free  */
void ipath_free_lkey(struct ipath_lkey_table *rkt, u32 lkey)
/* ipath_free_lkey - free an lkey @rkt: table from which to free the lkey @lkey: lkey id to free  */
void ipath_free_lkey(struct ipath_lkey_table *rkt, u32 lkey)
{
	unsigned long flags;
	u32 r;
	if (lkey == 0)
		return;
	r = lkey >> (32 - ib_ipath_lkey_table_size);
	spin_lock_irqsave(&rkt->lock, flags);
	rkt->table[r] = NULL;
	spin_unlock_irqrestore(&rkt->lock, flags);
}