]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
IncRemove: Set "auto-read" only after successful excl open.
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Fri, 27 Feb 2015 14:47:54 +0000 (15:47 +0100)
committerNeilBrown <neilb@suse.de>
Wed, 4 Mar 2015 04:59:53 +0000 (15:59 +1100)
commit4d149ab5178e21422a9bdb9a5489ed3381a0d136
tree4eb6dd5159706fd3bb02fe39eafecc06c8c8ef1d
parentf666bcc6528326c3431b013f47803db904ff65c0
IncRemove: Set "auto-read" only after successful excl open.

"mdadm -If" - triggered from udev rules when disk is removed from OS -
tries to set array in auto-read-only mode. This can interrupt rebuild
process which is started automatically, e.g. if array is mounted and
spare disk is available (I/O error is detected faster than removing
failed disk by mdadm).
This patch prevents "mdadm -If" from setting array into "auto-read-only",
by requiring exclusive open to succeed.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c