Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
94f5af8b
Commit
94f5af8b
authored
Apr 04, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Apr 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix exit_notify() to actually do what the comment
says it should do - lock out preemption.
parent
2fd2c043
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
kernel/exit.c
kernel/exit.c
+5
-2
No files found.
kernel/exit.c
View file @
94f5af8b
...
...
@@ -469,12 +469,15 @@ static void exit_notify(void)
write_lock_irq
(
&
tasklist_lock
);
}
}
/*
* No need to unlock IRQs, we'll schedule() immediately
* anyway. In the preemption case this also makes it
* impossible for the task to get runnable again.
* impossible for the task to get runnable again (thus
* the "_raw_" unlock - to make sure we don't try to
* preempt here).
*/
write_unlock
(
&
tasklist_lock
);
_raw_
write_unlock
(
&
tasklist_lock
);
}
NORET_TYPE
void
do_exit
(
long
code
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment