mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
SUNRPC: Remove the obsolete RPC_WAITQ macro
Now that we've killed off all the users. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
a4a874990c
commit
c087567d3f
@ -217,29 +217,6 @@ struct rpc_wait_queue {
|
||||
* performance of NFS operations such as read/write.
|
||||
*/
|
||||
#define RPC_BATCH_COUNT 16
|
||||
|
||||
#ifndef RPC_DEBUG
|
||||
# define RPC_WAITQ_INIT(var,qname) { \
|
||||
.lock = __SPIN_LOCK_UNLOCKED(var.lock), \
|
||||
.tasks = { \
|
||||
[0] = LIST_HEAD_INIT(var.tasks[0]), \
|
||||
[1] = LIST_HEAD_INIT(var.tasks[1]), \
|
||||
[2] = LIST_HEAD_INIT(var.tasks[2]), \
|
||||
}, \
|
||||
}
|
||||
#else
|
||||
# define RPC_WAITQ_INIT(var,qname) { \
|
||||
.lock = __SPIN_LOCK_UNLOCKED(var.lock), \
|
||||
.tasks = { \
|
||||
[0] = LIST_HEAD_INIT(var.tasks[0]), \
|
||||
[1] = LIST_HEAD_INIT(var.tasks[1]), \
|
||||
[2] = LIST_HEAD_INIT(var.tasks[2]), \
|
||||
}, \
|
||||
.name = qname, \
|
||||
}
|
||||
#endif
|
||||
# define RPC_WAITQ(var,qname) struct rpc_wait_queue var = RPC_WAITQ_INIT(var,qname)
|
||||
|
||||
#define RPC_IS_PRIORITY(q) ((q)->maxpriority > 0)
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user