Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-15671 mds: do not send OST_CREATE transno interop
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_dev.c
diff --git
a/lustre/ofd/ofd_dev.c
b/lustre/ofd/ofd_dev.c
index
e1e97a9
..
fe5660d
100644
(file)
--- 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;
}
if (diff > 0) {
time64_t enough_time = ktime_get_seconds() + DISK_TIMEOUT;
+ bool trans_local;
u64 next_id;
int created = 0;
int count;
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);
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,
}
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;
if (rc > 0) {
created += rc;
diff -= rc;