dm raid1: add framework to hold bios during suspend
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:03 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:03 +0000 (23:52 +0000)
commit04788507686d184d8166918b70ef52311bc36dcb
treec17fb1f8f9ac8d2a137f9c523d059f5918940c93
parent64b30c46e866bbff8a9e17883a18636adc358455
dm raid1: add framework to hold bios during suspend

Add framework to delay bios until a suspend and then resubmit them with
either DM_ENDIO_REQUEUE (if the suspend was noflush) or complete them
with -EIO.  I/O barrier support will use this.

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