]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm snapshot: fix metadata writing when suspending
authorMark McLoughlin <markmc@redhat.com>
Thu, 14 Dec 2006 22:09:07 +0000 (23:09 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 14 Dec 2006 22:09:07 +0000 (23:09 +0100)
commit87b79ceffcfe322c55657051a948eb228e2c9a4d
tree715a1ad8e1e230c040c3af2c4f6dbaad33632114
parent970d548af4b9b95b416c31607bbcc844984a1af4
dm snapshot: fix metadata writing when suspending

When suspending a device-mapper device, dm_suspend() sleeps until all
necessary I/O is completed.  This state is triggered by a callback from
persistent_commit().  But some I/O can still be issued *after* the callback
(to prepare the next metadata area for use if the current one is full).  This
patch delays the callback until after that I/O is complete.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/md/dm-exception-store.c