summaryrefslogtreecommitdiff
path: root/include/linux/wait.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2015-06-17 12:31:46 +1000
committerNeilBrown <neilb@suse.de>2015-06-25 17:16:49 +1000
commitab16bfc732c436658d13455f28b0b4a2608a7476 (patch)
tree8759fd4e6003feb01a0dd371f05e0b289f737349 /include/linux/wait.h
parent9a8c0fa861e4db60409b4dda254cef5e17e4d43c (diff)
md: clear Blocked flag on failed devices when array is read-only.
The Blocked flag indicates that a device has failed but that this fact hasn't been recorded in the metadata yet. Writes to such devices cannot be allowed until the metadata has been updated. On a read-only array, the Blocked flag will never be cleared. This prevents the device being removed from the array. If the metadata is being handled by the kernel (i.e. !mddev->external), then we can be sure that if the array is switch to writable, then a metadata update will happen and will record the failure. So we don't need the flag set. If metadata is externally managed, it is upto the external manager to clear the 'blocked' flag. Reported-by: XiaoNi <xni@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'include/linux/wait.h')
0 files changed, 0 insertions, 0 deletions