dm snapshot: delay merging a chunk until writes to it complete
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:33 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:33 +0000 (23:52 +0000)
commit17aa03326d40614db94bc51fbbc92df628a5c97c
treea9661a11274731b6b8e2fcbaace7d4424b9cefb6
parent9fe862548821b0c206c58e8057b782530a173703
dm snapshot: delay merging a chunk until writes to it complete

Track writes to chunks that are currently being merged and delay merging
a chunk until all writes to that chunk finish.

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