X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog.c;h=202610d86b66b81d8976a65085334b5e7f6bb0fb;hb=fb4073bc3cfbf1a7ad17b03270e986098a2869ee;hp=14ed25dd9aa145b6f8e45a42210d99a83efa70ae;hpb=6e3ec5812ebd1b5ecf7cae584f429b013ffe7431;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog.c b/lustre/obdclass/llog.c index 14ed25d..202610d 100644 --- a/lustre/obdclass/llog.c +++ b/lustre/obdclass/llog.c @@ -242,7 +242,8 @@ static int llog_process_thread(void *arg) return 0; } - cfs_daemonize_ctxt("llog_process_thread"); + if (!(lpi->lpi_flags & LLOG_FLAG_NODEAMON)) + cfs_daemonize_ctxt("llog_process_thread"); if (cd != NULL) { last_called_index = cd->lpcd_first_idx; @@ -354,8 +355,8 @@ static int llog_process_thread(void *arg) return 0; } -int llog_process(struct llog_handle *loghandle, llog_cb_t cb, - void *data, void *catdata) +int llog_process_flags(struct llog_handle *loghandle, llog_cb_t cb, + void *data, void *catdata, int flags) { struct llog_process_info *lpi; int rc; @@ -370,6 +371,7 @@ int llog_process(struct llog_handle *loghandle, llog_cb_t cb, lpi->lpi_cb = cb; lpi->lpi_cbdata = data; lpi->lpi_catdata = catdata; + lpi->lpi_flags = flags; #ifdef __KERNEL__ cfs_init_completion(&lpi->lpi_completion); @@ -387,6 +389,13 @@ int llog_process(struct llog_handle *loghandle, llog_cb_t cb, OBD_FREE_PTR(lpi); RETURN(rc); } +EXPORT_SYMBOL(llog_process_flags); + +int llog_process(struct llog_handle *loghandle, llog_cb_t cb, + void *data, void *catdata) +{ + return llog_process_flags(loghandle, cb, data, catdata, 0); +} EXPORT_SYMBOL(llog_process); inline int llog_get_size(struct llog_handle *loghandle)