From f494bae1453a172b1c6434ec9be714b85844d90c Mon Sep 17 00:00:00 2001 From: tianying Date: Fri, 28 Nov 2003 15:25:15 +0000 Subject: [PATCH] 1. add lop_precleanup - llog_obd_repl_precleanup for filter 2. delay llog_precleanup after fsfilt_sync in filter_disconnect --- lustre/obdclass/llog_obd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/obdclass/llog_obd.c b/lustre/obdclass/llog_obd.c index d07fcf6..e7c61d6 100644 --- a/lustre/obdclass/llog_obd.c +++ b/lustre/obdclass/llog_obd.c @@ -77,17 +77,18 @@ int llog_cleanup(struct llog_ctxt *ctxt) } EXPORT_SYMBOL(llog_cleanup); -int llog_precleanup(struct llog_ctxt *ctxt) +int llog_precleanup(struct llog_ctxt *ctxt, struct obd_export *exp) { + int rc = 0; ENTRY; if (!ctxt) RETURN(0); - if (ctxt->loc_llcd) - llog_cancel(ctxt, NULL, 0, NULL, OBD_LLOG_FL_SENDNOW); + if (ctxt->loc_llcd && CTXTP(ctxt, precleanup)) + rc = CTXTP(ctxt, precleanup)(ctxt, exp); - RETURN(0); + RETURN(rc); } EXPORT_SYMBOL(llog_precleanup); -- 1.8.3.1