]> git.ipfire.org Git - thirdparty/mdadm.git/commit - monitor.c
monitor: don't call pselect() on deleted sysfs files
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 25 Oct 2013 10:07:36 +0000 (12:07 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 23 Apr 2013 04:55:32 +0000 (14:55 +1000)
commit2b60d2890faa8b3dc361a163ea745380c1305c96
tree78771c931256f0504edd29252140fa1c3cfa2b41
parent7d5a7ff3dad7195072a198d229d671a747c97304
monitor: don't call pselect() on deleted sysfs files

It makes no sense to listen for events on files that have
been deleted. This happens when arrays are stopped and the
kernel removes the associated sysfs structures.

Calling pselect() on the deleted attributes may cause a storm
of wake events.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
monitor.c