From: Malahal Naineni <malahal@us.ibm.com>
To: dm-devel@redhat.com
Subject: Re: Improving dm-mirror as a final year project
Date: Wed, 26 Jan 2011 12:04:20 -0800 [thread overview]
Message-ID: <20110126200420.GA29143@us.ibm.com> (raw)
In-Reply-To: <AANLkTinK6u8zJyJn8f5j0jVPBQgstPVPFftfQfCw5vuH@mail.gmail.com>
nishant mungse [nishantmungse@gmail.com] wrote:
>
> hello all,
> There is one doubt regarding the dm-raid1. As far as i know, in dm-raid1
> the data is written parallelly� on all the mirrors of mirrorset and if any
> of the mirror fails to write the data then dm-mirror adds this mirror to
> fail list by increasing the error count in "fail mirror" function in
> dm-raid1.
> Actually my doubt is where this error count is decremented? i.e after
> kcpyd or before and where exactly this error count is decremented?
There is no actual 'fail list' of mirror legs. The error_count is never
decremented. The 'error_count' is only used to tell if the mirror leg
has encountered errors. The only way to clear that counter is
re-loading the table!
See the comment:
/*
* error_count is used for nothing more than a
* simple way to tell if a device has encountered
* errors.
*/
atomic_inc(&m->error_count);
Hope that helps,
Malahal.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
next prev parent reply other threads:[~2011-01-26 20:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 15:53 Improving dm-mirror as a final year project Miklos Vajna
2011-01-26 17:24 ` nishant mungse
2011-01-26 20:04 ` Malahal Naineni [this message]
2011-01-27 8:28 ` nishant mungse
2011-02-01 16:12 ` Jonathan Brassow
2011-02-09 17:13 ` Miklos Vajna
2011-02-14 17:33 ` Miklos Vajna
2011-02-14 21:31 ` Jonathan Brassow
2011-02-15 12:52 ` Miklos Vajna
2011-02-15 22:13 ` Jonathan Brassow
2011-02-16 17:12 ` Miklos Vajna
2011-02-17 10:49 ` Miklos Vajna
2011-02-17 21:02 ` Jonathan Brassow
-- strict thread matches above, loose matches on Subject: below --
2011-01-26 1:58 Miklos Vajna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110126200420.GA29143@us.ibm.com \
--to=malahal@us.ibm.com \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.