Re: [PATCH v4 1/2] rust: add static_key_false

2024-06-29 Thread hev
Hi Alice On Fri, Jun 28, 2024 at 9:24 PM Alice Ryhl wrote: > > Add just enough support for static key so that we can use it from > tracepoints. Tracepoints rely on `static_key_false` even though it is > deprecated, so we add the same functionality to Rust. > > It is not possible to use the existi

[RFC PATCH v1] MIPS: tlbex: Avoid access invalid address when pmd is modifying

2021-02-07 Thread hev
: handle_tlbl: load pmd again for load pte(as base address), the value of pmd is not an address, access invalid address! This patch avoids the inconsistency of two memory loads by reusing the result of one load. Signed-off-by: hev Signed-off-by: wangrui --- arch/mips/mm/tlbex.c | 28

[RFC PATCH v2] MIPS: tlbex: Avoid access invalid address when pmd is modifying

2021-02-07 Thread hev
: handle_tlbl: load pmd again for load pte(as base address), the value of pmd is not an address, access invalid address! This patch avoids the inconsistency of two memory loads by reusing the result of one load. Signed-off-by: hev Signed-off-by: wangrui --- arch/mips/mm/tlbex.c | 32

[RFC PATCH v3] MIPS: tlbex: Avoid access invalid address when pmd is modifying

2021-02-07 Thread hev
: handle_tlbl: load pmd again for load pte(as base address), the value of pmd is not an address, access invalid address! This patch avoids the inconsistency of two memory loads by reusing the result of one load. Signed-off-by: hev Signed-off-by: wangrui --- arch/mips/mm/tlbex.c | 23

[PATCH] fs/epoll: fix the edge-triggered mode for epoll itself

2019-08-29 Thread hev
close(sfd[0]); close(sfd[1]); printf("SUCC\n"); return 0; out: printf("FAIL\n"); return -1; } Signed-off-by: hev Cc: Eric Wong Cc: linux-kernel@vger.kernel.org Cc: linux-fsde...@vger.kernel.org --- fs/eventpoll.c | 6 +- 1 f

[PATCH RESEND] fs/epoll: fix the edge-triggered mode for nested epoll

2019-09-01 Thread hev
return 0; out: printf("FAIL\n"); return -1; } Cc: Al Viro Cc: Andrew Morton Cc: Davide Libenzi Cc: Davidlohr Bueso Cc: Dominik Brodowski Cc: Eric Wong Cc: Jason Baron Cc: Linus Torvalds Cc: Roman Penyaev Cc: Sridhar Samudrala Cc: linux-kernel@vger.kernel

[PATCH RESEND v5] fs/epoll: Remove unnecessary wakeups of nested epoll

2019-10-08 Thread hev
Morton Cc: Davide Libenzi Cc: Davidlohr Bueso Cc: Dominik Brodowski Cc: Eric Wong Cc: Jason Baron Cc: Linus Torvalds Cc: Roman Penyaev Cc: Sridhar Samudrala Cc: linux-kernel@vger.kernel.org Cc: linux-fsde...@vger.kernel.org Signed-off-by: hev --- fs/eventpoll.c | 16 1 fi

[PATCH] selftests: add epoll selftests

2019-10-09 Thread hev
...@vger.kernel.org Signed-off-by: hev --- tools/testing/selftests/Makefile |1 + .../selftests/filesystems/epoll/.gitignore|1 + .../selftests/filesystems/epoll/Makefile |7 + .../filesystems/epoll/epoll_wakeup_test.c | 3074 + 4 files changed

[PATCH RESEND v2] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-19 Thread hev
rew Morton Cc: Davide Libenzi Cc: Davidlohr Bueso Cc: Dominik Brodowski Cc: Eric Wong Cc: Jason Baron Cc: Linus Torvalds Cc: Roman Penyaev Cc: Sridhar Samudrala Cc: linux-kernel@vger.kernel.org Cc: linux-fsde...@vger.kernel.org Signed-off-by: hev --- fs/eventpoll.c | 5 - 1 file chang

[PATCH RESEND v3] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-24 Thread hev
Al Viro Cc: Andrew Morton Cc: Davide Libenzi Cc: Davidlohr Bueso Cc: Dominik Brodowski Cc: Eric Wong Cc: Jason Baron Cc: Linus Torvalds Cc: Roman Penyaev Cc: Sridhar Samudrala Cc: linux-kernel@vger.kernel.org Cc: linux-fsde...@vger.kernel.org Signed-off-by: hev --- fs/eventpoll.c | 16 ++

[PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-24 Thread hev
nux-fsde...@vger.kernel.org Signed-off-by: hev --- fs/eventpoll.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index c4159bcc05d9..a0c07f6653c6 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -704,12 +704,21 @@ static __poll_