if (!idarray)
RETURN(-ENOMEM);
- rc = llog_get_cat_list(obd, obd, name, 0, count, idarray);
- if (rc) {
- OBD_FREE(idarray, size);
- RETURN(rc);
- }
+ mutex_down(&obd->obd_olg.olg_cat_processing);
+ rc = llog_get_cat_list(obd, name, 0, count, idarray);
+ if (rc)
+ GOTO(out, rc);
out = data->ioc_bulk;
remains = data->ioc_inllen1;
break;
}
}
+out:
+ /* release semaphore */
+ mutex_up(&obd->obd_olg.olg_cat_processing);
+
OBD_VFREE(idarray, size);
- RETURN(0);
+ RETURN(rc);
}
EXPORT_SYMBOL(llog_catalog_list);