]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: already read sysfs files once after opening.
authorNeilBrown <neilb@suse.de>
Wed, 17 Sep 2014 05:02:18 +0000 (15:02 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Sep 2014 05:02:18 +0000 (15:02 +1000)
commitda5a36fa1f0ae8c47075d696d14309c74fd350dc
treec078f4c2d20d2e29ccbe062d2a3a69f5509abc55
parenta821c95f114724b38df1ea99b2858178e0ed28ce
mdmon: already read sysfs files once after opening.

seq_file in the kernel will allocate a read buffer on
first read.  We want this to happen under the managemon thread,
not the 'monitor' thread, as the latter is not allow to allocate
memory (might deadlock).
So do a first read after opening.

Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c