/* nsm_release - Release an NSM handle @nsm: pointer to handle to be released  */
void nsm_release(struct nsm_handle *nsm)
/* nsm_release - Release an NSM handle @nsm: pointer to handle to be released  */
void nsm_release(struct nsm_handle *nsm)
{
	if (atomic_dec_and_lock(&nsm->sm_count, &nsm_lock)) {
		list_del(&nsm->sm_link);
		spin_unlock(&nsm_lock);
		dprintk("lockd: destroyed nsm_handle for %s (%s)\n",
				nsm->sm_name, nsm->sm_addrbuf);
		kfree(nsm);
	}
}