/* Put an active reference to @sd. This function is noop if @sd is NULL.  */
static void sysfs_put_active(struct sysfs_dirent *sd)
/* Put an active reference to @sd. This function is noop if @sd is NULL.  */
static void sysfs_put_active(struct sysfs_dirent *sd)
{
	struct completion *cmpl;
	int v;
	if (unlikely(!sd))
		return;
	rwsem_release(&sd->dep_map, 1, _RET_IP_);
	v = atomic_dec_return(&sd->s_active);
	if (likely(v != SD_DEACTIVATED_BIAS))
		return;
	cmpl = (void *)sd->s_sibling;
	complete(cmpl);
}