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
f5fb7b06
Commit
f5fb7b06
authored
Feb 25, 2008
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Eliminate the now-redundant rpc_start_wakeup()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
eb276c0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
include/linux/sunrpc/sched.h
include/linux/sunrpc/sched.h
+1
-11
net/sunrpc/sched.c
net/sunrpc/sched.c
+2
-6
No files found.
include/linux/sunrpc/sched.h
View file @
f5fb7b06
...
...
@@ -142,8 +142,7 @@ struct rpc_task_setup {
#define RPC_TASK_RUNNING 0
#define RPC_TASK_QUEUED 1
#define RPC_TASK_WAKEUP 2
#define RPC_TASK_ACTIVE 3
#define RPC_TASK_ACTIVE 2
#define RPC_IS_RUNNING(t) test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
#define rpc_set_running(t) set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
...
...
@@ -165,15 +164,6 @@ struct rpc_task_setup {
smp_mb__after_clear_bit(); \
} while (0)
#define rpc_start_wakeup(t) \
(test_and_set_bit(RPC_TASK_WAKEUP, &(t)->tk_runstate) == 0)
#define rpc_finish_wakeup(t) \
do { \
smp_mb__before_clear_bit(); \
clear_bit(RPC_TASK_WAKEUP, &(t)->tk_runstate); \
smp_mb__after_clear_bit(); \
} while (0)
#define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate)
/*
...
...
net/sunrpc/sched.c
View file @
f5fb7b06
...
...
@@ -384,12 +384,8 @@ static void __rpc_do_wake_up_task(struct rpc_wait_queue *queue, struct rpc_task
*/
static
void
rpc_wake_up_task_queue_locked
(
struct
rpc_wait_queue
*
queue
,
struct
rpc_task
*
task
)
{
if
(
!
RPC_IS_QUEUED
(
task
)
||
task
->
tk_waitqueue
!=
queue
)
return
;
if
(
rpc_start_wakeup
(
task
))
{
__rpc_do_wake_up_task
(
queue
,
task
);
rpc_finish_wakeup
(
task
);
}
if
(
RPC_IS_QUEUED
(
task
)
&&
task
->
tk_waitqueue
==
queue
)
__rpc_do_wake_up_task
(
queue
,
task
);
}
/*
...
...
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