From 6c8085515d84ec6fd8abe82b007624d67927d089 Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Tue, 6 Sep 2016 10:48:28 -0500 Subject: [PATCH 1/1] LU-8735 llite: Return -ERESTARTSYS in range_lock() If we return -ERESTARTSYS rather than -EINTR then the syscall can be retried rather than failing with -EINTR. Signed-off-by: Chris Horn Change-Id: I20d1a552448e567f0400a14a71a00d0d25a9164d Reviewed-on: https://review.whamcloud.com/23259 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/llite/range_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/range_lock.c b/lustre/llite/range_lock.c index ead9321..56e1291 100644 --- a/lustre/llite/range_lock.c +++ b/lustre/llite/range_lock.c @@ -234,7 +234,7 @@ int range_lock(struct range_lock_tree *tree, struct range_lock *lock) if (signal_pending(current)) { range_unlock(tree, lock); - GOTO(out, rc = -EINTR); + GOTO(out, rc = -ERESTARTSYS); } spin_lock(&tree->rlt_lock); } -- 1.8.3.1