From 510d4a80d98d48a5eabc534048bfc6068dadd6cc Mon Sep 17 00:00:00 2001 From: green Date: Fri, 29 May 2009 02:40:45 +0000 Subject: [PATCH] b=18788 r=green,adilger,rread Avoid sync i/o on client disconnect from OSTs, since there are no dependent operations possible. --- lustre/obdfilter/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 5dcf7e2..3d1b6c1 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -510,7 +510,7 @@ static int filter_client_free(struct obd_export *exp) if (!(exp->exp_flags & OBD_OPT_FAILOVER)) { /* Don't force sync on disconnect if aborting recovery, * or it does num_clients * num_osts. b=17194 */ - int need_sync = (!exp->exp_libclient || exp->exp_need_sync) && + int need_sync = exp->exp_need_sync && !(exp->exp_flags&OBD_OPT_ABORT_RECOV); push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); -- 1.8.3.1