dm raid1: use hold framework in do_failures
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:04 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:04 +0000 (23:52 +0000)
commit0f398a8403e31c737b429fddc3850093d0bf58d0
tree4acfeaf25e028f4700d88c8b685fa7e6d83e8b96
parent04788507686d184d8166918b70ef52311bc36dcb
dm raid1: use hold framework in do_failures

Use the hold framework in do_failures.

This patch doesn't change the bio processing logic, it just simplifies
failure handling and avoids periodically polling the failures list.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Takahiro Yasui <tyasui@redhat.com>
Tested-by: Takahiro Yasui <tyasui@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c