From: Mikulas Patocka Date: Thu, 10 Dec 2009 23:52:06 +0000 (+0000) Subject: dm raid1: hold all write bios when leg fails X-Git-Tag: v2.6.33-rc1~75^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929be8fcb4b4b65d038e73d3bb34715851a95ca2;p=pandora-kernel.git dm raid1: hold all write bios when leg fails Hold all write bios when leg fails and errors are handled When using a userspace daemon such as dmeventd to handle errors, we must delay completing bios until it has done its job. This patch prevents the following race: - primary leg fails - write "1" fail, the write is held, secondary leg is set default - write "2" goes straight to the secondary leg Signed-off-by: Mikulas Patocka Reviewed-by: Takahiro Yasui Tested-by: Takahiro Yasui Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed