From 917af22476bc0eebde06fa1fe42de7eacfc60a1c Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 16 Aug 2003 19:05:29 +0000 Subject: [PATCH] Use compat. macros to fix building w/ rh-2.4.20 series. r=phil --- lustre/osc/osc_rpcd.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lustre/osc/osc_rpcd.c b/lustre/osc/osc_rpcd.c index f77e554..9ab633c 100644 --- a/lustre/osc/osc_rpcd.c +++ b/lustre/osc/osc_rpcd.c @@ -136,15 +136,11 @@ static int osc_rpcd(void *arg) ENTRY; kportal_daemonize("liod_writeback"); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) - sigfillset(¤t->blocked); - recalc_sigpending(); -#else - spin_lock_irqsave(¤t->sigmask_lock, flags); + + SIGNAL_MASK_LOCK(current, flags); sigfillset(¤t->blocked); - recalc_sigpending(current); - spin_unlock_irqrestore(¤t->sigmask_lock, flags); -#endif + RECALC_SIGPENDING; + SIGNAL_MASK_UNLOCK(current, flags); complete(&orc->orc_starting); -- 1.8.3.1