dm snapshot: implement iterate devices
authorMike Snitzer <snitzer@redhat.com>
Fri, 4 Sep 2009 19:40:19 +0000 (20:40 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 4 Sep 2009 19:40:19 +0000 (20:40 +0100)
commit8811f46c1f9386fc7017150de9d52359e5b1826e
treed7ff12ec29d2911801e81b50440f160d58b0f9a8
parenta77e28c7e1dc1a6a035c7627d4a88ecf3ea09aea
dm snapshot: implement iterate devices

Implement the .iterate_devices for the origin and snapshot targets.
dm-snapshot's lack of .iterate_devices resulted in the inability to
properly establish queue_limits for both targets.

With 4K sector drives: an unfortunate side-effect of not establishing
proper limits in either targets' DM device was that IO to the devices
would fail even though both had been created without error.

Commit af4874e03ed82f050d5872d8c39ce64bf16b5c38 ("dm target:s introduce
iterate devices fn") in 2.6.31-rc1 should have implemented .iterate_devices
for dm-snap.c's origin and snapshot targets.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c