+ cfs_list_for_each_entry(entry, &g_uuid_list, un_list) {
+ if (entry->un_nid == nid &&
+ (strcmp(entry->un_uuid, uuid) == 0)) {
+ found++;
+ entry->un_count++;
+ break;
+ }
+ }
+ if (!found)
+ cfs_list_add(&data->un_list, &g_uuid_list);
+ cfs_spin_unlock (&g_uuid_lock);
+
+ if (found) {
+ CDEBUG(D_INFO, "found uuid %s %s cnt=%d\n", uuid,
+ libcfs_nid2str(nid), entry->un_count);
+ OBD_FREE(data->un_uuid, nob);
+ OBD_FREE(data, sizeof(*data));
+ } else {
+ CDEBUG(D_INFO, "add uuid %s %s\n", uuid, libcfs_nid2str(nid));
+ }