dm log: add flush callback fn
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:01 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:01 +0000 (23:52 +0000)
commit87a8f240e9bcf025ba45e4563c842b0d59c5e8ef
treeb6b42a74fc1135c11656d8cf4bf5ea4005c74a77
parent5adc78d0d231b030405b31759f125f13404fdb64
dm log: add flush callback fn

Introduce a callback pointer from the log to dm-raid1 layer.

Before some region is set as "in-sync", we need to flush hardware cache on
all the disks. But the log module doesn't have access to the mirror_set
structure. So it will use this callback.

So far the callback is unused, it will be used in further patches.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log.c
drivers/md/dm-raid1.c
include/linux/dm-dirty-log.h