summaryrefslogtreecommitdiff
path: root/fs/exofs/exofs.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-11-04 08:46:03 +0300
committerShaohua Li <shli@fb.com>2016-11-08 02:08:23 +0300
commit5e2c7a3611977b69ae0531e8fbdeab5dad17925a (patch)
treed7618a423b48af572c9f0af614bb9d4d764394dc /fs/exofs/exofs.h
parent060b0689f5df7e87641c820a605c779149da33ef (diff)
downloadlinux-5e2c7a3611977b69ae0531e8fbdeab5dad17925a.tar.xz
md/raid1: abort delayed writes when device fails.
When writing to an array with a bitmap enabled, the writes are grouped in batches which are preceded by an update to the bitmap. It is quite likely if that a drive develops a problem which is not media related, that the bitmap write will be the first to report an error and cause the device to be marked faulty (as the bitmap write is at the start of a batch). In this case, there is point submiting the subsequent writes to the failed device - that just wastes times. So re-check the Faulty state of a device before submitting a delayed write. This requires that we keep the 'rdev', rather than the 'bdev' in the bio, then swap in the bdev just before final submission. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'fs/exofs/exofs.h')
0 files changed, 0 insertions, 0 deletions