forked from Freescale/linux-fslc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evl/monitor: event: disable syscall restart on interrupted wait
When interrupted by a signal, a wait operation on a gated monitor should not be restarted automatically from kernel space, but reported to the user instead. Rationale: the mutex guarding the monitor was dropped prior to waiting, and must be re-acquired explicitly by an UNWAIT request when the interrupted status is detected from user-space. Consequently, we cannot retry a WAIT request without transitioning to user-space first. Add the T_NORST local information bit to the thread control block, which is set by the monitor wait operation, and tested by the syscall trampoline code for disabling automatic restart. Signed-off-by: Philippe Gerum <rpm@xenomai.org>
- Loading branch information
Showing
3 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters