Commit 285b3afe authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by David S. Miller

[ATALK] aarp: replace schedule_timeout() with msleep()

From: Nishanth Aravamudan <>

Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected. The current code is not wrong, but it does not account for
early return due to signals, so I think msleep() should be appropriate.
Signed-off-by: default avatarNishanth Aravamudan <>
Signed-off-by: default avatarDomen Puncer <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7abaa27c
......@@ -35,6 +35,7 @@
#include <net/datalink.h>
#include <net/psnap.h>
#include <linux/atalk.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
......@@ -462,8 +463,7 @@ void aarp_probe_network(struct atalk_iface *atif)
aarp_send_probe(atif->dev, &atif->address);
/* Defer 1/10th */
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ / 10);
if (atif->status & ATIF_PROBE_FAIL)
......@@ -510,9 +510,8 @@ int aarp_proxy_probe_network(struct atalk_iface *atif, struct atalk_addr *sa)
aarp_send_probe(atif->dev, sa);
/* Defer 1/10th */
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ / 10);
if (entry->status & ATIF_PROBE_FAIL)
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