Commit 7f76eb1a authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: lustre: discard SVC_SIGNAL and related functions

This flag is never set, so remove checks and remove
the flag.
Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Reviewed-by: default avatarPatrick Farrell <paf@cray.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0957a2c1
...@@ -1260,7 +1260,6 @@ enum { ...@@ -1260,7 +1260,6 @@ enum {
SVC_STARTING = 1 << 2, SVC_STARTING = 1 << 2,
SVC_RUNNING = 1 << 3, SVC_RUNNING = 1 << 3,
SVC_EVENT = 1 << 4, SVC_EVENT = 1 << 4,
SVC_SIGNAL = 1 << 5,
}; };
#define PTLRPC_THR_NAME_LEN 32 #define PTLRPC_THR_NAME_LEN 32
...@@ -1333,11 +1332,6 @@ static inline int thread_is_event(struct ptlrpc_thread *thread) ...@@ -1333,11 +1332,6 @@ static inline int thread_is_event(struct ptlrpc_thread *thread)
return !!(thread->t_flags & SVC_EVENT); return !!(thread->t_flags & SVC_EVENT);
} }
static inline int thread_is_signal(struct ptlrpc_thread *thread)
{
return !!(thread->t_flags & SVC_SIGNAL);
}
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;
......
...@@ -153,7 +153,6 @@ static int sec_gc_main(void *arg) ...@@ -153,7 +153,6 @@ static int sec_gc_main(void *arg)
while (1) { while (1) {
struct ptlrpc_sec *sec; struct ptlrpc_sec *sec;
thread_clear_flags(thread, SVC_SIGNAL);
sec_process_ctx_list(); sec_process_ctx_list();
again: again:
/* go through sec list do gc. /* go through sec list do gc.
...@@ -184,8 +183,7 @@ static int sec_gc_main(void *arg) ...@@ -184,8 +183,7 @@ static int sec_gc_main(void *arg)
lwi = LWI_TIMEOUT(msecs_to_jiffies(SEC_GC_INTERVAL * MSEC_PER_SEC), lwi = LWI_TIMEOUT(msecs_to_jiffies(SEC_GC_INTERVAL * MSEC_PER_SEC),
NULL, NULL); NULL, NULL);
l_wait_event(thread->t_ctl_waitq, l_wait_event(thread->t_ctl_waitq,
thread_is_stopping(thread) || thread_is_stopping(thread),
thread_is_signal(thread),
&lwi); &lwi);
if (thread_test_and_clear_flags(thread, SVC_STOPPING)) if (thread_test_and_clear_flags(thread, SVC_STOPPING))
......
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