diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:42:03 +0100 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:42:03 +0100 |
| commit | 842134f1e3a19a98f1757e11f509f63fd5257714 (patch) | |
| tree | 148e08b4c9f4e825ffdfe7ce905386fdb525da9c /include/linux | |
| parent | 89a45174b6b32596ea98fa3f89a243e2c1188a01 (diff) | |
RPC: Optimize away unnecessary del_timer_sync() operations, when we
know there are no pending timers.
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 00952a69dea6..933eeb005f09 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -142,6 +142,7 @@ typedef void (*rpc_action)(struct rpc_task *); #define RPC_TASK_RUNNING 0 #define RPC_TASK_QUEUED 1 #define RPC_TASK_WAKEUP 2 +#define RPC_TASK_HAS_TIMER 3 #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)) |
