- aai->aai_index_cb = 0;
- rc = llog_cat_process(&aai->aai_env, aai->aai_llh,
- agent_actions_show_cb, s, 0, 0);
- /* was all llog parsed? */
- if (rc == 0)
- aai->aai_eof = 1;
- /* not enough room in buffer? */
- if (rc == LLOG_PROC_BREAK)
- RETURN(0);
- /* error */
+ mutex_lock(&cdt->cdt_llog_lock);
+ rc = llog_cat_process(&aai->aai_env, aai->aai_ctxt->loc_handle,
+ hsm_actions_show_cb, s,
+ aai->aai_cat_index, aai->aai_index + 1);
+ mutex_unlock(&cdt->cdt_llog_lock);
+ if (rc == 0) /* all llog parsed */
+ aai->aai_eof = true;
+ if (rc == LLOG_PROC_BREAK) /* buffer full */
+ rc = 0;