X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftarget%2Fout_lib.c;h=1f55422f73033ac59f52608e77d5ada07f84e201;hb=116c51fd3db691537fbe83a223d646ddf045bc13;hp=c486f3f00e5312a44e0fe8d26b0683475bb813c6;hpb=c4ff984dc55b29d810ee996a0d30ebd817c09df4;p=fs%2Flustre-release.git diff --git a/lustre/target/out_lib.c b/lustre/target/out_lib.c index c486f3f..1f55422 100644 --- a/lustre/target/out_lib.c +++ b/lustre/target/out_lib.c @@ -20,7 +20,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2014, 2015, Intel Corporation. + * Copyright (c) 2014, 2017, Intel Corporation. */ /* * lustre/target/out_lib.c @@ -657,6 +657,10 @@ int out_attr_set_add_exec(const struct lu_env *env, struct dt_object *dt_obj, if (rc != 0) return rc; + if (attr->la_valid & LA_FLAGS && + attr->la_flags & LUSTRE_SET_SYNC_FL) + th->th_sync |= 1; + arg = tx_add_exec(ta, out_tx_attr_set_exec, out_tx_attr_set_undo, file, line); if (IS_ERR(arg))