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-8900 snapshot: user interface for write barrier on MDT
[fs/lustre-release.git]
/
lustre
/
target
/
barrier.c
diff --git
a/lustre/target/barrier.c
b/lustre/target/barrier.c
index
e52d303
..
6145e0e
100644
(file)
--- a/
lustre/target/barrier.c
+++ b/
lustre/target/barrier.c
@@
-323,6
+323,9
@@
int barrier_handler(struct dt_device *key, struct ptlrpc_request *req)
break;
case BS_FREEZING_P1:
case BS_FREEZING_P2:
+ if (OBD_FAIL_CHECK(OBD_FAIL_BARRIER_FAILURE))
+ GOTO(fini, rc = -EINVAL);
+
barrier->bi_deadline = cfs_time_current_sec() +
desc->lgbd_timeout;
rc = barrier_freeze(&env, barrier,