11 Dec, 2009

1 commit

  • 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
    Signed-off-by: Alasdair G Kergon

    Mikulas Patocka
     

03 Apr, 2009

2 commits

  • The logging API needs an extra function to make cluster mirroring
    possible. This new function allows us to check whether a mirror
    region is being recovered on another machine in the cluster. This
    helps us prevent simultaneous recovery I/O and process I/O to the
    same locations on disk.

    Cluster-aware log modules will implement this function. Single
    machine log modules will not. So, there is no performance
    penalty for single machine mirrors.

    Signed-off-by: Jonathan Brassow
    Acked-by: Heinz Mauelshagen
    Signed-off-by: Alasdair G Kergon

    Jonathan Brassow
     
  • Remove the 'dm_dirty_log_internal' structure. The resulting cleanup
    eliminates extra memory allocations. Therefore exposing the internal
    list_head to the external 'dm_dirty_log_type' structure is a worthwhile
    compromise.

    Signed-off-by: Mike Snitzer
    Signed-off-by: Alasdair G Kergon

    Mike Snitzer
     

25 Apr, 2008

1 commit