diff options
Diffstat (limited to 'drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c')
-rw-r--r-- | drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c index 871ba44b29f3..19f405e64e68 100644 --- a/drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c +++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c @@ -130,11 +130,11 @@ cfs_block_allsigs(void) unsigned long flags; sigset_t old; - SIGNAL_MASK_LOCK(current, flags); + spin_lock_irqsave(¤t->sighand->siglock, flags); old = current->blocked; sigfillset(¤t->blocked); recalc_sigpending(); - SIGNAL_MASK_UNLOCK(current, flags); + spin_unlock_irqrestore(¤t->sighand->siglock, flags); return old; } @@ -144,11 +144,11 @@ sigset_t cfs_block_sigs(unsigned long sigs) unsigned long flags; sigset_t old; - SIGNAL_MASK_LOCK(current, flags); + spin_lock_irqsave(¤t->sighand->siglock, flags); old = current->blocked; sigaddsetmask(¤t->blocked, sigs); recalc_sigpending(); - SIGNAL_MASK_UNLOCK(current, flags); + spin_unlock_irqrestore(¤t->sighand->siglock, flags); return old; } @@ -158,11 +158,11 @@ sigset_t cfs_block_sigsinv(unsigned long sigs) unsigned long flags; sigset_t old; - SIGNAL_MASK_LOCK(current, flags); + spin_lock_irqsave(¤t->sighand->siglock, flags); old = current->blocked; sigaddsetmask(¤t->blocked, ~sigs); recalc_sigpending(); - SIGNAL_MASK_UNLOCK(current, flags); + spin_unlock_irqrestore(¤t->sighand->siglock, flags); return old; } @@ -172,10 +172,10 @@ cfs_restore_sigs (sigset_t old) { unsigned long flags; - SIGNAL_MASK_LOCK(current, flags); + spin_lock_irqsave(¤t->sighand->siglock, flags); current->blocked = old; recalc_sigpending(); - SIGNAL_MASK_UNLOCK(current, flags); + spin_unlock_irqrestore(¤t->sighand->siglock, flags); } int @@ -189,9 +189,9 @@ cfs_clear_sigpending(void) { unsigned long flags; - SIGNAL_MASK_LOCK(current, flags); + spin_lock_irqsave(¤t->sighand->siglock, flags); clear_tsk_thread_flag(current, TIF_SIGPENDING); - SIGNAL_MASK_UNLOCK(current, flags); + spin_unlock_irqrestore(¤t->sighand->siglock, flags); } int |