From: green Date: Fri, 29 May 2009 02:38:46 +0000 (+0000) Subject: b=18788 X-Git-Tag: v1_8_2_01~1^2~368 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=23151fbd78b2fbc4819a5139a3b10756846fac98;p=fs%2Flustre-release.git b=18788 r=green,adilger,rread Avoid sync i/o on client disconnect from OSTs, since there are no dependent operations possible. --- 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);