dm: keep old table until after resume succeeded
authorAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:24 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:24 +0000 (23:52 +0000)
commit042d2a9bcd80fe12d4b0871706aa9dd2231e8238
tree69a7b6675e2cd020807729de50cd99747f6470f4
parenta794015597a2d9b437470c7692aac77e5fc08cd2
dm: keep old table until after resume succeeded

When swapping a new table into place, retain the old table until
its replacement is in place.

An old check for an empty table is removed because this is enforced
in populate_table().

__unbind() becomes redundant when followed by __bind().

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-ioctl.c
drivers/md/dm.c
include/linux/device-mapper.h