try to acquire mutex before checking timeout
cover try to acquire mutex before checking timeout
This patch serial is going to change mutex_timedlock's behavior, instead of validating timeout first, it tries to acquire resource at the beginning and returns 0 if resource is available even timeout is invalid.
smokey test for mutex should be adjusted regarding the change.
Song Chen (2):
y2038: cobalt/posix/mutex: try acquire mutex before checking timeout
y2038: testsuite/smokey/2038: move mutex test to another thread
kernel/cobalt/posix/mutex.c | 5 +++ testsuite/smokey/y2038/syscall-tests.c | 74 +++++++++++++++++----------------- 2 files changed, 41 insertions(+), 38 deletions(-)
Signature · 1 line
2.7.4
Hi Song,
Quoted 9 lines · Song Chen
This patch serial is going to change mutex_timedlock's behavior, instead of validating timeout first, it tries to acquire resource at the beginning and returns 0 if resource is available even timeout is invalid.
smokey test for mutex should be adjusted regarding the change.
Song Chen (2):
y2038: cobalt/posix/mutex: try acquire mutex before checking timeout
y2038: testsuite/smokey/2038: move mutex test to another thread
This has nothing to do with the y2038 stuff, so I would vote for removing that from the title.
Quoted 5 lines
kernel/cobalt/posix/mutex.c | 5 +++
testsuite/smokey/y2038/syscall-tests.c | 74 +++++++++++++++++-----------------2 files changed, 41 insertions(+), 38 deletions(-)
Quoted 7 lines · Florian
Hi Song,
Quoted 4 lines · Song Chen
This patch serial is going to change mutex_timedlock's behavior, instead of validating timeout first, it tries to acquire resource at the beginning and returns 0 if resource is available even timeout is invalid.
Quoted 8 lines
Quoted 5 lines
smokey test for mutex should be adjusted regarding the change.
Song Chen (2):
y2038: cobalt/posix/mutex: try acquire mutex before checking timeout
y2038: testsuite/smokey/2038: move mutex test to another threadThis has nothing to do with the y2038 stuff, so I would vote for removing that from the title.
should i resend the patch serial? it has something to do with smokey test.
/Song
Quoted 7 lines
Quoted 6 lines
kernel/cobalt/posix/mutex.c | 5 +++ testsuite/smokey/y2038/syscall-tests.c | 74 +++++++++++++++++----------------- 2 files changed, 41 insertions(+), 38 deletions(-)