From: green Date: Fri, 29 May 2009 02:38:54 +0000 (+0000) Subject: b=18788 X-Git-Tag: v1_9_0_200~50 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3750f401f0a3e519bf06338d75a2f5c9a1c7052d;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 6b77b66..1ab6b0a 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -432,7 +432,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); rc = fsfilt_write_record(obd, filter->fo_rcvd_filp, &zero_lcd,