dm raid1: keep issuing IO after leg failure
authorLidong Zhong <lzhong@suse.com>
Wed, 13 May 2015 06:04:10 +0000 (14:04 +0800)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:02 +0000 (14:19 -0400)
commited63287dd670f8e9d2412a913de7fdc50a689831
treed3d67d72e2e7ea1be00e609165cf0b59cbf16b2e
parentf4ad317aedf836e7bb67108a119bfec7f3d97ef1
dm raid1: keep issuing IO after leg failure

Currently if there is a leg failure, the bio will be put into the hold
list until userspace does a remove/replace on the leg.  Doing so in a
cluster config (clvmd) is problematic because there may be a temporary
path failure that results in cluster raid1 remove/replace.  Such
recovery takes a long time due to a full resync.

Update dm-raid1 to optionally ignore these failures so bios continue
being issued without interrupton.  To enable this feature userspace
must pass "keep_log" when creating the dm-raid1 device.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Tested-by: Liuhua Wang <lwang@suse.com>
Acked-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid1.c