On 9/9/20 4:31 AM, Mariusz Tkaczyk wrote: > After 52209d6ee118 ("Monitor: release /proc/mdstat fd when no arrays > present") mdstat fd is closed if mdstat is empty or cannot be opened. > It causes that monitor is not able to select on mdstat. Select > doesn't fail because it gets valid descriptor to a different resource. > As a result any new event will be unnoticed until timeout (delay). > > Refresh mdstat after wake up, don't poll on wrong resource. > > Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxx> > --- > Monitor.c | 6 +++--- > mdstat.c | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) Applied! Thanks, Jes