From cab9c67d461c65a1138359f9f6d39636466b90e4 Mon Sep 17 00:00:00 2001 From: Blazej Kucman Date: Wed, 9 Sep 2020 10:31:19 +0200 Subject: mdmonitor: set small delay once If mdmonitor is awakened by event, set small delay once to deal with udev and mdadm. Signed-off-by: Blazej Kucman Signed-off-by: Mariusz Tkaczyk Signed-off-by: Jes Sorensen --- mdadm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 399478b8..4961c0f9 100644 --- a/mdadm.h +++ b/mdadm.h @@ -628,7 +628,7 @@ struct mdstat_ent { extern struct mdstat_ent *mdstat_read(int hold, int start); extern void mdstat_close(void); extern void free_mdstat(struct mdstat_ent *ms); -extern void mdstat_wait(int seconds); +extern int mdstat_wait(int seconds); extern void mdstat_wait_fd(int fd, const sigset_t *sigmask); extern int mddev_busy(char *devnm); extern struct mdstat_ent *mdstat_by_component(char *name); -- cgit v1.2.3