dlm: Fix test for -ERESTARTSYS
Subsystems (2)
PATCH 1/1 dlm: Fix test for -ERESTARTSYS
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 <[email protected]>
---
Static analysis. Not tested.
fs/dlm/lockspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dlm/lockspace.c +1 -1
@@ -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);
Signature · 1 line
2.17.1