[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

[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 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

[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 v5] fs/epoll: Remove unnecessary wakeups of nested epoll

2019-10-09 Thread hev
enzi 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 file changed, 16 dele

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

2019-09-24 Thread hev
ests: https://github.com/heiher/epoll-wakeup 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.org Cc: linux-fsde...@vger.kern

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

2019-09-24 Thread hev
ibenzi 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 file changed, 14 inse

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

2019-09-19 Thread hev
ibenzi 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 changed, 4 insertions(+), 1 deletion(

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

2019-09-01 Thread hev
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.org Cc: linux-fsde...@vger.kernel.org Signed-off-by: hev --- fs/e

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

2019-08-29 Thread hev
quot;); 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 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/eventpoll.c