dm: store only first barrier error
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:18 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:18 +0000 (10:12 +0100)
commit5aa2781d964e9835c441932110484bc454b5c207
tree4f771f3e933eaedf67e5f9e8d5fcc10340af80e2
parent2761e95fe40ca0d01864310fa4d488d7c5e34e18
dm: store only first barrier error

With the following patches, more than one error can occur during
processing.  Change md->barrier_error so that only the first one is
recorded and returned to the caller.

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