git: 5eec19c8eb0e - main - linux(4): The futex_wait operation should restart.

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Mon, 09 May 2022 18:17:06 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=5eec19c8eb0e1afafd7290325c61611c9a13b621

commit 5eec19c8eb0e1afafd7290325c61611c9a13b621
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-09 18:08:59 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-05-09 18:08:59 +0000

    linux(4): The futex_wait operation should restart.
    
    It's ok from the futex_wait perspective as umtxq_sleep method uses
    absolute sleep timeout.
    
    MFC after:              2 weeks
---
 sys/compat/linux/linux_futex.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 5591b4fc3234..1b4ef9e8efe8 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -779,8 +779,6 @@ linux_futex_wait(struct thread *td, struct linux_futex_args *args)
 	}
 	umtxq_unlock(&uq->uq_key);
 	umtx_key_release(&uq->uq_key);
-	if (error == ERESTART)
-		error = EINTR;
 	return (error);
 }