- spin_lock(&qctxt->lqc_lock);
- if (!qctxt->lqc_valid)
- rc = -EBUSY;
- else
- rc = cfs_hash_add_unique(qctxt->lqc_lqs_hash,
- &lqs->lqs_key, &lqs->lqs_hash);
- spin_unlock(&qctxt->lqc_lock);
+ cfs_spin_lock(&qctxt->lqc_lock);
+ if (qctxt->lqc_valid)
+ hs = cfs_hash_getref(qctxt->lqc_lqs_hash);
+ cfs_spin_unlock(&qctxt->lqc_lock);