X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=fe5660d4452b1755186b7e2fedf844da5cc31ba9;hb=9ee1281060d0a00a9c5d715a9a6d9b99c27123ff;hp=e1e97a9cf1977d3b755047374bffc24505ca347e;hpb=2c12b93ccb5768af99e943eac9e923d39146408f;p=fs%2Flustre-release.git diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index e1e97a9..fe5660d 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -1605,6 +1605,7 @@ static int ofd_create_hdl(struct tgt_session_info *tsi) } if (diff > 0) { time64_t enough_time = ktime_get_seconds() + DISK_TIMEOUT; + bool trans_local; u64 next_id; int created = 0; int count; @@ -1644,7 +1645,7 @@ static int ofd_create_hdl(struct tgt_session_info *tsi) } } - + trans_local = !exp_connect_replay_create(req->rq_export); while (diff > 0) { next_id = ofd_seq_last_oid(oseq) + 1; count = ofd_precreate_batch(ofd, (int)diff); @@ -1663,7 +1664,8 @@ static int ofd_create_hdl(struct tgt_session_info *tsi) } rc = ofd_precreate_objects(tsi->tsi_env, ofd, next_id, - oseq, count, sync_trans); + oseq, count, sync_trans, + trans_local); if (rc > 0) { created += rc; diff -= rc;