diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/sched.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 0d7be1642dc0..bf69fce84ed0 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
@@ -142,8 +142,7 @@ struct rpc_task_setup { | |||
142 | 142 | ||
143 | #define RPC_TASK_RUNNING 0 | 143 | #define RPC_TASK_RUNNING 0 |
144 | #define RPC_TASK_QUEUED 1 | 144 | #define RPC_TASK_QUEUED 1 |
145 | #define RPC_TASK_WAKEUP 2 | 145 | #define RPC_TASK_ACTIVE 2 |
146 | #define RPC_TASK_ACTIVE 3 | ||
147 | 146 | ||
148 | #define RPC_IS_RUNNING(t) test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate) | 147 | #define RPC_IS_RUNNING(t) test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate) |
149 | #define rpc_set_running(t) set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate) | 148 | #define rpc_set_running(t) set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate) |
@@ -165,15 +164,6 @@ struct rpc_task_setup { | |||
165 | smp_mb__after_clear_bit(); \ | 164 | smp_mb__after_clear_bit(); \ |
166 | } while (0) | 165 | } while (0) |
167 | 166 | ||
168 | #define rpc_start_wakeup(t) \ | ||
169 | (test_and_set_bit(RPC_TASK_WAKEUP, &(t)->tk_runstate) == 0) | ||
170 | #define rpc_finish_wakeup(t) \ | ||
171 | do { \ | ||
172 | smp_mb__before_clear_bit(); \ | ||
173 | clear_bit(RPC_TASK_WAKEUP, &(t)->tk_runstate); \ | ||
174 | smp_mb__after_clear_bit(); \ | ||
175 | } while (0) | ||
176 | |||
177 | #define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate) | 167 | #define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate) |
178 | 168 | ||
179 | /* | 169 | /* |