diff options
author | NeilBrown <neilb@suse.de> | 2007-05-10 03:15:50 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-10 09:26:53 -0700 |
commit | dd00a99e7a4b739bd41ef4093760efc7e447f963 (patch) | |
tree | 2bb5bfafc0de89bd00ef530540e91e8297fc5d57 /drivers/i2c/busses/i2c-at91.c | |
parent | c5ddb547e899993be56dc7d0bf72bfd7a8d4ae1e (diff) | |
download | blackbird-op-linux-dd00a99e7a4b739bd41ef4093760efc7e447f963.tar.gz blackbird-op-linux-dd00a99e7a4b739bd41ef4093760efc7e447f963.zip |
md: avoid a possibility that a read error can wrongly propagate through md/raid1 to a filesystem.
When a raid1 has only one working drive, we want read error to propagate up
to the filesystem as there is no point failing the last drive in an array.
Currently the code perform this check is racy. If a write and a read a
both submitted to a device on a 2-drive raid1, and the write fails followed
by the read failing, the read will see that there is only one working drive
and will pass the failure up, even though the one working drive is actually
the *other* one.
So, tighten up the locking.
Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
0 files changed, 0 insertions, 0 deletions