Commit 147760d4 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: lustre: remove unused flag from ptlrpc_thread

SVC_EVENT is no longer used.
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be3c64da
...@@ -1259,7 +1259,6 @@ enum { ...@@ -1259,7 +1259,6 @@ enum {
SVC_STOPPING = 1 << 1, SVC_STOPPING = 1 << 1,
SVC_STARTING = 1 << 2, SVC_STARTING = 1 << 2,
SVC_RUNNING = 1 << 3, SVC_RUNNING = 1 << 3,
SVC_EVENT = 1 << 4,
}; };
#define PTLRPC_THR_NAME_LEN 32 #define PTLRPC_THR_NAME_LEN 32
...@@ -1302,11 +1301,6 @@ struct ptlrpc_thread { ...@@ -1302,11 +1301,6 @@ struct ptlrpc_thread {
char t_name[PTLRPC_THR_NAME_LEN]; char t_name[PTLRPC_THR_NAME_LEN];
}; };
static inline int thread_is_init(struct ptlrpc_thread *thread)
{
return thread->t_flags == 0;
}
static inline int thread_is_stopped(struct ptlrpc_thread *thread) static inline int thread_is_stopped(struct ptlrpc_thread *thread)
{ {
return !!(thread->t_flags & SVC_STOPPED); return !!(thread->t_flags & SVC_STOPPED);
...@@ -1327,11 +1321,6 @@ static inline int thread_is_running(struct ptlrpc_thread *thread) ...@@ -1327,11 +1321,6 @@ static inline int thread_is_running(struct ptlrpc_thread *thread)
return !!(thread->t_flags & SVC_RUNNING); return !!(thread->t_flags & SVC_RUNNING);
} }
static inline int thread_is_event(struct ptlrpc_thread *thread)
{
return !!(thread->t_flags & SVC_EVENT);
}
static inline void thread_clear_flags(struct ptlrpc_thread *thread, __u32 flags) static inline void thread_clear_flags(struct ptlrpc_thread *thread, __u32 flags)
{ {
thread->t_flags &= ~flags; thread->t_flags &= ~flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment