staging: lustre: simplify linux-prim.c
cfs_block_sigs() is never used. cfs_clear_sigpending() is never used. cfs_block_allsigs() is no longer used. So those three functions can go. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2a4b688125
commit
99c1ffc99a
@ -67,11 +67,8 @@
|
||||
/*
|
||||
* Defined by platform
|
||||
*/
|
||||
sigset_t cfs_block_allsigs(void);
|
||||
sigset_t cfs_block_sigs(unsigned long sigs);
|
||||
sigset_t cfs_block_sigsinv(unsigned long sigs);
|
||||
void cfs_restore_sigs(sigset_t sigset);
|
||||
void cfs_clear_sigpending(void);
|
||||
|
||||
struct libcfs_ioctl_handler {
|
||||
struct list_head item;
|
||||
|
@ -43,36 +43,6 @@
|
||||
#include <linux/kgdb.h>
|
||||
#endif
|
||||
|
||||
sigset_t
|
||||
cfs_block_allsigs(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
sigset_t old;
|
||||
|
||||
spin_lock_irqsave(¤t->sighand->siglock, flags);
|
||||
old = current->blocked;
|
||||
sigfillset(¤t->blocked);
|
||||
recalc_sigpending();
|
||||
spin_unlock_irqrestore(¤t->sighand->siglock, flags);
|
||||
|
||||
return old;
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_block_allsigs);
|
||||
|
||||
sigset_t cfs_block_sigs(unsigned long sigs)
|
||||
{
|
||||
unsigned long flags;
|
||||
sigset_t old;
|
||||
|
||||
spin_lock_irqsave(¤t->sighand->siglock, flags);
|
||||
old = current->blocked;
|
||||
sigaddsetmask(¤t->blocked, sigs);
|
||||
recalc_sigpending();
|
||||
spin_unlock_irqrestore(¤t->sighand->siglock, flags);
|
||||
return old;
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_block_sigs);
|
||||
|
||||
/* Block all signals except for the @sigs */
|
||||
sigset_t cfs_block_sigsinv(unsigned long sigs)
|
||||
{
|
||||
@ -100,14 +70,3 @@ cfs_restore_sigs(sigset_t old)
|
||||
spin_unlock_irqrestore(¤t->sighand->siglock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_restore_sigs);
|
||||
|
||||
void
|
||||
cfs_clear_sigpending(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(¤t->sighand->siglock, flags);
|
||||
clear_tsk_thread_flag(current, TIF_SIGPENDING);
|
||||
spin_unlock_irqrestore(¤t->sighand->siglock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_clear_sigpending);
|
||||
|
Loading…
x
Reference in New Issue
Block a user