summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2005-01-04 21:42:03 +0100
committerTrond Myklebust <trond.myklebust@fys.uio.no>2005-01-04 21:42:03 +0100
commit842134f1e3a19a98f1757e11f509f63fd5257714 (patch)
tree148e08b4c9f4e825ffdfe7ce905386fdb525da9c /include/linux
parent89a45174b6b32596ea98fa3f89a243e2c1188a01 (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.h1
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))