<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 3:04 PM, Malahal Naineni <span dir="ltr"><<a href="mailto:malahal@us.ibm.com" target="_blank">malahal@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>nishant mungse [<a href="mailto:nishantmungse@gmail.com" target="_blank">nishantmungse@gmail.com</a>] wrote:<br>
><br>
>    hello all,<br>
>    There is one doubt regarding the dm-raid1. As far as i know, in dm-raid1<br>
>    the data is written parallelly� on all the mirrors of mirrorset and if any<br>
>    of the mirror fails to write the data then dm-mirror adds this mirror to<br>
>    fail list by increasing the error count in "fail mirror" function in<br>
>    dm-raid1.<br>
>    Actually my doubt is where this error count is decremented? i.e after<br>
>    kcpyd or before and where exactly this error count is decremented?<br>
<br>
</div>There is no actual 'fail list' of mirror legs. The error_count is never<br>
decremented. The 'error_count' is only used to tell if the mirror leg<br>
has encountered errors. The only way to clear that counter is<br>
re-loading the table!<br>
<br>
See the comment:<br>
<br>
        /*<br>
         * error_count is used for nothing more than a<br>
         * simple way to tell if a device has encountered<br>
         * errors.<br>
         */<br>
        atomic_inc(&m->error_count);<br>
<br>
Hope that helps,<br>
<font color="#888888">Malahal.<br>
</font><div><div></div><div><br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com" target="_blank">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a></div></div></blockquote></div><br>Hi Malahal<br><br>Thanks for reply. I am not able to understand what  this "INIT_WORK(&ms->kmirrord_work, do_mirror)" function does. It  is written in mirror_ctr of dm-raid1. What i think is whenever a bio comes dm_mirror will be called if that is case then why this is written in mirror_ctr. Please answer this.<br>
<br>Regards,<br>Nishant.<br><br>
<br><br>