Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
476ced36
Commit
476ced36
authored
Oct 12, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/head' into rt/2.6.31
parents
7947db18
a03d1035
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
kernel/futex.c
kernel/futex.c
+3
-12
No files found.
kernel/futex.c
View file @
476ced36
...
...
@@ -1677,17 +1677,8 @@ out:
static
void
futex_wait_queue_me
(
struct
futex_hash_bucket
*
hb
,
struct
futex_q
*
q
,
struct
hrtimer_sleeper
*
timeout
)
{
queue_me
(
q
,
hb
);
/*
* There might have been scheduling since the queue_me(), as we
* cannot hold a spinlock across the get_user() in case it
* faults, and we cannot just set TASK_INTERRUPTIBLE state when
* queueing ourselves into the futex hash. This code thus has to
* rely on the futex_wake() code removing us from hash when it
* wakes us up.
*/
set_current_state
(
TASK_INTERRUPTIBLE
);
queue_me
(
q
,
hb
);
/* Arm the timer */
if
(
timeout
)
{
...
...
@@ -1697,8 +1688,8 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
}
/*
*
!plist_node_empty() is safe here without any lock.
*
q.lock_ptr != 0 is not safe, because of ordering against wakeup
.
*
If we have been removed from the hash list, then another task
*
has tried to wake us, and we can skip the call to schedule()
.
*/
if
(
likely
(
!
plist_node_empty
(
&
q
->
list
)))
{
/*
...
...
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