/* pdcs_unregister_pathentries - Routine called when unregistering the module.  */
static void pdcs_unregister_pathentries(void)
/* pdcs_unregister_pathentries - Routine called when unregistering the module.  */
static void pdcs_unregister_pathentries(void)
{
	unsigned short i;
	struct pdcspath_entry *entry;
	for (i = 0; (entry = pdcspath_entries[i]); i++) {
		read_lock(&entry->rw_lock);
		if (entry->ready >= 2)
			kobject_put(&entry->kobj);
		read_unlock(&entry->rw_lock);
	}
}