* [Cluster-devel] [PATCH] dlm: Fix test for -ERESTARTSYS
@ 2019-02-05 9:07 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2019-02-05 9:07 UTC (permalink / raw)
To: cluster-devel.redhat.com
The minus sign is missing so this condition is never true.
Fixes: 5c1597bfeb2c ("dlm: retry wait_event_interruptible in event of ERESTARTSYS")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
Static analysis. Not tested.
fs/dlm/lockspace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 7aae23afdd3a..738136a762d4 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -213,7 +213,7 @@ static int do_uevent(struct dlm_ls *ls, int in)
do {
error = wait_event_interruptible(ls->ls_uevent_wait,
test_and_clear_bit(LSFL_UEVENT_WAIT, &ls->ls_flags));
- } while (error == ERESTARTSYS);
+ } while (error == -ERESTARTSYS);
log_rinfo(ls, "group event done %d %d", error, ls->ls_uevent_result);
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-05 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-05 9:07 [Cluster-devel] [PATCH] dlm: Fix test for -ERESTARTSYS Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).