dm: simplify dm_request loop
authorAlasdair G Kergon <agk@redhat.com>
Wed, 8 Apr 2009 23:27:14 +0000 (00:27 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 8 Apr 2009 23:27:14 +0000 (00:27 +0100)
commit54d9a1b4513b96cbd835ca6866c6a604d194b2ae
tree42813374e137f5ac6d9d7aedfae02a089b6443a6
parent1eb787ec183d1267cac95aae632e92dee05ed50a
dm: simplify dm_request loop

Refactor the code in dm_request().

Require the new DMF_BLOCK_FOR_SUSPEND flag on readahead bios we will
discard so we don't drop such bios while processing a barrier.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c