]> git.ipfire.org Git - thirdparty/mdadm.git/commit - managemon.c
mdmon: avoid writes in the startup path for mdmon on root arrays
authorDan Williams <dan.j.williams@intel.com>
Wed, 14 Oct 2009 00:41:57 +0000 (17:41 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 14 Oct 2009 00:41:57 +0000 (17:41 -0700)
commit96a8270d46faab599b41f1cf78b4331b44c5a6be
treef41146da4aaff8df940634b0706ef7f972cd0eb3
parentaae5a11207cf6da1682e6a76e116a19e21473f03
mdmon: avoid writes in the startup path for mdmon on root arrays

When killing a previous monitor be careful not to cause writes to the
filesystem until the reads necessary to get the monitor operational have
completed.

The code is already prepared for errors creating the pid and socket
files, so simply defer creation of these files until after the first
call to manage().

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
managemon.c
mdmon.c