/* That gets run when evict_chunk() ends up needing to kill  */
static int prune_tree_thread(void *unused)
/* That gets run when evict_chunk() ends up needing to kill  */
static int prune_tree_thread(void *unused)
{
	mutex_lock(&audit_cmd_mutex);
	mutex_lock(&audit_filter_mutex);
	while (!list_empty(&prune_list)) {
		struct audit_tree *victim;
		victim = list_entry(prune_list.next, struct audit_tree, list);
		list_del_init(&victim->list);
		mutex_unlock(&audit_filter_mutex);
		prune_one(victim);
		mutex_lock(&audit_filter_mutex);
	}
	mutex_unlock(&audit_filter_mutex);
	mutex_unlock(&audit_cmd_mutex);
	return 0;
}