dm io: retry after barrier error
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:26 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:26 +0000 (10:12 +0100)
commit51aa322849581f1a73594e48ea0df63f914ee6a2
tree19b3545084700fc36b5a916d71473936628bb062
parent5af443a7e1c0864100cc44525a9821aa2a2f4719
dm io: retry after barrier error

If -EOPNOTSUPP was returned and the request was a barrier request, retry it
without barrier.

Retry all regions for now. Barriers are submitted only for one-region requests,
so it doesn't matter.  (In the future, retries can be limited to the actual
regions that failed.)

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