1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons/cmirrord
Jonathan Earl Brassow 34cbedceaf This patch fixes an issue where cluster mirror write I/O
can be opprobriously slow if created with '--nosync'.

One of the ways cluster mirrors coordinate I/O and recovery
amoung the different machines is by the use of the log
function 'is_remote_recovering()' which lets nodes know if
a region they wish to perform a write on is currently being
recovered on another node.  If the region is being recovered,
the I/O is delayed.

The 'is_remote_recovering' routine has been optimized to
avoid the deluge of requests that would be issued to the
userspace log server by maintaining a marker of how far
the recovery has gotten.  It can then immediately return
'not recovering' if the region being inquired about is
less than this mark.  Additionally, if the region of
concern is greater than the mark, the function will
limit the number of transmissions to userspace by assuming
the region /is/ being recovered when skipping the
transmission.  This limits the amount of processing
and updates the mark in 1/4 sec time steps.

This patch fixes a problem where 'the mark' is not being
updated because of faulty logic in the userspace log
daemon.  When '--nosync' is used to create a cluster
mirror, the userspace log daemon never has a chance
to update the mark in the normal way.  The fix is to set
the mark to "complete" if the mirror was created with
the --nosync flag.
2010-08-30 18:37:42 +00:00
..
clogd.c Add dm_create_lockfile to libdm to handle pidfiles for all daemons. 2010-07-13 13:51:01 +00:00
cluster.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
cluster.h Deal with a few more compiler warnings. 2010-01-20 02:43:19 +00:00
common.h Clean up include files. 2010-01-18 21:07:24 +00:00
compat.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
compat.h Clean up include files. 2010-01-18 21:07:24 +00:00
functions.c This patch fixes an issue where cluster mirror write I/O 2010-08-30 18:37:42 +00:00
functions.h Clean up include files. 2010-01-18 21:07:24 +00:00
link_mon.c Signal handling FIXMEs. 2010-01-19 15:58:45 +00:00
link_mon.h Clean up include files. 2010-01-18 21:07:24 +00:00
local.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
local.h Clean up include files. 2010-01-18 21:07:24 +00:00
logging.c Clean up include files. 2010-01-18 21:07:24 +00:00
logging.h Use "" instead of <> for configure.h and libdevmapper.h 2010-06-15 11:00:44 +00:00
Makefile.in INSTALL rules updates 2010-04-09 21:42:48 +00:00