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
895b494c
Commit
895b494c
authored
Dec 04, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Dec 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] No need to set task state back to TASK_RUNNING after returning from schedule()
SGI Modid: 2.5.x-xfs:slinx:134176a
parent
f5e49239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
fs/xfs/support/mrlock.c
fs/xfs/support/mrlock.c
+1
-3
fs/xfs/support/sv.h
fs/xfs/support/sv.h
+1
-2
No files found.
fs/xfs/support/mrlock.c
View file @
895b494c
...
@@ -87,7 +87,7 @@ lock_wait(wait_queue_head_t *q, spinlock_t *lock, int rw)
...
@@ -87,7 +87,7 @@ lock_wait(wait_queue_head_t *q, spinlock_t *lock, int rw)
{
{
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
set_current_state
(
TASK_UNINTERRUPTIBLE
);
__
set_current_state
(
TASK_UNINTERRUPTIBLE
);
spin_lock
(
&
q
->
lock
);
spin_lock
(
&
q
->
lock
);
if
(
rw
)
{
if
(
rw
)
{
...
@@ -101,8 +101,6 @@ lock_wait(wait_queue_head_t *q, spinlock_t *lock, int rw)
...
@@ -101,8 +101,6 @@ lock_wait(wait_queue_head_t *q, spinlock_t *lock, int rw)
schedule
();
schedule
();
set_current_state
(
TASK_RUNNING
);
spin_lock
(
&
q
->
lock
);
spin_lock
(
&
q
->
lock
);
__remove_wait_queue
(
q
,
&
wait
);
__remove_wait_queue
(
q
,
&
wait
);
spin_unlock
(
&
q
->
lock
);
spin_unlock
(
&
q
->
lock
);
...
...
fs/xfs/support/sv.h
View file @
895b494c
...
@@ -60,12 +60,11 @@ static inline void _sv_wait(sv_t *sv, spinlock_t *lock, int state,
...
@@ -60,12 +60,11 @@ static inline void _sv_wait(sv_t *sv, spinlock_t *lock, int state,
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
add_wait_queue_exclusive
(
&
sv
->
waiters
,
&
wait
);
add_wait_queue_exclusive
(
&
sv
->
waiters
,
&
wait
);
set_current_state
(
state
);
__
set_current_state
(
state
);
spin_unlock
(
lock
);
spin_unlock
(
lock
);
schedule_timeout
(
timeout
);
schedule_timeout
(
timeout
);
set_current_state
(
TASK_RUNNING
);
remove_wait_queue
(
&
sv
->
waiters
,
&
wait
);
remove_wait_queue
(
&
sv
->
waiters
,
&
wait
);
}
}
...
...
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