From 447bf1f0204baf5ba2e2fda02c79cadb12fa09f5 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 29 Sep 2009 12:32:01 +0000 Subject: [PATCH] - no need for commit cb when client is disconnecting --- lustre/mdt/mdt_recovery.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index dc4f9c5..d5e606d 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -807,22 +807,6 @@ int mdt_client_del(const struct lu_env *env, struct mdt_device *mdt) if (rc) GOTO(cleanup, rc); - if (need_sync) { - /* - * Until this operations will be committed the sync - * is needed for this export. - */ - mdt_trans_add_cb(th, lut_cb_client, exp); - } - - if (need_sync) { - /* - * Until this operations will be committed the sync - * is needed for this export. - */ - mdt_trans_add_cb(th, lut_cb_client, exp); - } - mutex_down(&med->med_lcd_lock); memset(lcd, 0, sizeof *lcd); @@ -845,7 +829,7 @@ cleanup: * after the client is freed so we know all the client's * transactions have been committed. */ - mdt_server_data_update_noth(env, mdt, need_sync); + mdt_server_data_update_noth(env, mdt, 0); EXIT; free: -- 1.8.3.1