]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b65cbebe813038c9fc05b0aa4b995b93a0fa696
treed7ff12ec29d2911801e81b50440f160d58b0f9a8
parent12fc1c0919a99f3091287a03c66d806b71a82b56
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 d7c8fe371c18d4c8124b7e3dd79601221f8cc922 ("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