* dm-raid1 - error handling?
@ 2007-12-04 16:53 Ondrej Palkovsky
0 siblings, 0 replies; only message in thread
From: Ondrej Palkovsky @ 2007-12-04 16:53 UTC (permalink / raw)
To: dm-devel
I have been browsing through source code of dm-raid1.c (kernel 2.6.23.1)
and this seems to me weird.
Function write_callback in dm-raid1.c - what is it supposed to do?
First, the if (error) block seems
like just one big NOP, second it looks like any error slips undetected.
Am I correct or is there some logic I am not aware of?
Ondrej
{
.. declarations etc...
if (error) {
/*
* only error the io if all mirrors failed.
* FIXME: bogus
*/
uptodate = 0;
for (i = 0; i < ms->nr_mirrors; i++)
if (!test_bit(i, &error)) {
uptodate = 1;
break;
}
}
bio_endio(bio, bio->bi_size, 0);
} - end of function
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-04 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 16:53 dm-raid1 - error handling? Ondrej Palkovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.