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-7702 ldlm: skip lock if export failed
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
service.c
diff --git
a/lustre/ptlrpc/service.c
b/lustre/ptlrpc/service.c
index
40077f0
..
e86c382
100644
(file)
--- a/
lustre/ptlrpc/service.c
+++ b/
lustre/ptlrpc/service.c
@@
-1583,7
+1583,14
@@
static int ptlrpc_server_hpreq_init(struct ptlrpc_service_part *svcpt,
* list otherwise it may hit swab race at LU-1044. */
if (req->rq_ops->hpreq_check != NULL) {
rc = req->rq_ops->hpreq_check(req);
* list otherwise it may hit swab race at LU-1044. */
if (req->rq_ops->hpreq_check != NULL) {
rc = req->rq_ops->hpreq_check(req);
- LASSERT(rc <= 1); /* can only return error, 0, or 1 */
+ if (rc == -ESTALE) {
+ req->rq_status = rc;
+ ptlrpc_error(req);
+ }
+ /** can only return error,
+ * 0 for normal request,
+ * or 1 for high priority request */
+ LASSERT(rc <= 1);
}
}
}
}