diff options
author | 2009-12-10 23:52:06 +0000 | |
---|---|---|
committer | 2009-12-10 23:52:06 +0000 | |
commit | 929be8fcb4b4b65d038e73d3bb34715851a95ca2 (patch) | |
tree | 7c008317d90232b5b2d3869b9fa68c1ec023d7f6 /lib/dma-debug.c | |
parent | dm raid1: hold write bios when errors are handled (diff) | |
download | linux-dev-929be8fcb4b4b65d038e73d3bb34715851a95ca2.tar.xz linux-dev-929be8fcb4b4b65d038e73d3bb34715851a95ca2.zip |
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 <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>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions