diff options
| author | NeilBrown <neilb@suse.de> | 2007-05-10 16:22:25 +1000 |
|---|---|---|
| committer | Chris Wright <chrisw@sous-sol.org> | 2007-05-23 14:32:48 -0700 |
| commit | 3fc9f5985e716db287a5df673156f2676e1862d0 (patch) | |
| tree | 05fb1e7fccef1a49cb0fdfcb4c3e72a9997e5cd3 /net/sunrpc/svcauth_unix.c | |
| parent | f34ddce1302d548244c499b2905ab2fe999610c6 (diff) | |
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
0 files changed, 0 insertions, 0 deletions
