/* Perform a synchronous OSD operation. copied from exofs; move to libosd?  */
static int osd_sync_op(struct osd_request *or, int timeout, uint8_t *credential)
/* Perform a synchronous OSD operation. copied from exofs; move to libosd?  */
static int osd_sync_op(struct osd_request *or, int timeout, uint8_t *credential)
{
	int ret;
	or->timeout = timeout;
	ret = osd_finalize_request(or, 0, credential, NULL);
	if (ret)
		return ret;
	ret = osd_execute_request(or);
	return ret;
}