[ATM]: keep atmsvc failure messages quiet
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
125a12ccf3
commit
0f8f325b25
1 changed files with 2 additions and 8 deletions
|
@ -39,25 +39,19 @@ static DECLARE_WAIT_QUEUE_HEAD(sigd_sleep);
|
||||||
static void sigd_put_skb(struct sk_buff *skb)
|
static void sigd_put_skb(struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
#ifdef WAIT_FOR_DEMON
|
#ifdef WAIT_FOR_DEMON
|
||||||
static unsigned long silence;
|
|
||||||
DECLARE_WAITQUEUE(wait,current);
|
DECLARE_WAITQUEUE(wait,current);
|
||||||
|
|
||||||
add_wait_queue(&sigd_sleep,&wait);
|
add_wait_queue(&sigd_sleep,&wait);
|
||||||
while (!sigd) {
|
while (!sigd) {
|
||||||
set_current_state(TASK_UNINTERRUPTIBLE);
|
set_current_state(TASK_UNINTERRUPTIBLE);
|
||||||
if (time_after(jiffies, silence) || silence == 0) {
|
DPRINTK("atmsvc: waiting for signaling demon...\n");
|
||||||
printk(KERN_INFO "atmsvc: waiting for signaling demon "
|
|
||||||
"...\n");
|
|
||||||
silence = (jiffies+30*HZ)|1;
|
|
||||||
}
|
|
||||||
schedule();
|
schedule();
|
||||||
}
|
}
|
||||||
current->state = TASK_RUNNING;
|
current->state = TASK_RUNNING;
|
||||||
remove_wait_queue(&sigd_sleep,&wait);
|
remove_wait_queue(&sigd_sleep,&wait);
|
||||||
#else
|
#else
|
||||||
if (!sigd) {
|
if (!sigd) {
|
||||||
if (net_ratelimit())
|
DPRINTK("atmsvc: no signaling demon\n");
|
||||||
printk(KERN_WARNING "atmsvc: no signaling demon\n");
|
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue