dm: remove EOPNOTSUPP for barriers
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:19 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:19 +0000 (10:12 +0100)
commitfdb9572b73abd008b80931c3b1f157dac3888bb9
treeae84d6ed1c97e77d536d0bcf2e25fa35d5cbfcba
parent5aa2781d964e9835c441932110484bc454b5c207
dm: remove EOPNOTSUPP for barriers

If the underlying device doesn't support barriers and dm receives a
barrier, it waits until all requests on that device drain so it no
longer needs to report -EOPNOTSUPP to the caller.

This patch deals with the confusing situation when moving a volume from
one physical device to another triggers an EOPNOTSUPP on a volume that
didn't report it before.

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