diff options
author | Roman Penyaev <rpenyaev@suse.de> | 2020-05-08 03:36:13 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-05-08 04:27:21 +0200 |
commit | 474328c06e3ee75bb6b92826fec90fdc8ef3c573 (patch) | |
tree | 76282d78ae14c5384232bc28e9af8299d4b2d636 /tools/bootconfig/samples/good-simple.bconf | |
parent | percpu: make pcpu_alloc() aware of current gfp context (diff) | |
download | linux-474328c06e3ee75bb6b92826fec90fdc8ef3c573.tar.xz linux-474328c06e3ee75bb6b92826fec90fdc8ef3c573.zip |
kselftests: introduce new epoll60 testcase for catching lost wakeups
This test case catches lost wake up introduced by commit 339ddb53d373
("fs/epoll: remove unnecessary wakeups of nested epoll")
The test is simple: we have 10 threads and 10 event fds. Each thread
can harvest only 1 event. 1 producer fires all 10 events at once and
waits that all 10 events will be observed by 10 threads.
In case of lost wakeup epoll_wait() will timeout and 0 will be returned.
Test case catches two sort of problems: forgotten wakeup on event, which
hits the ->ovflist list, this problem was fixed by:
5a2513239750 ("eventpoll: fix missing wakeup for ovflist in ep_poll_callback")
the other problem is when several sequential events hit the same waiting
thread, thus other waiters get no wakeups. Problem is fixed in the
following patch.
Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Khazhismel Kumykov <khazhy@google.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Heiher <r@hev.cc>
Cc: Jason Baron <jbaron@akamai.com>
Link: http://lkml.kernel.org/r/20200430130326.1368509-1-rpenyaev@suse.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/bootconfig/samples/good-simple.bconf')
0 files changed, 0 insertions, 0 deletions