]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[DLM] add lock timeouts and warnings [2/6]
authorDavid Teigland <teigland@redhat.com>
Fri, 18 May 2007 13:59:31 +0000 (08:59 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:22:33 +0000 (08:22 +0100)
commit3ae1acf93a21512512f8a78430fcde5992dd208e
tree878ed3c619530c6acf862ecf663063f66fc47a06
parent85e86edf951a8a39954c0ba1edbe4a58827dcd5c
[DLM] add lock timeouts and warnings [2/6]

New features: lock timeouts and time warnings.  If the DLM_LKF_TIMEOUT
flag is set, then the request/conversion will be canceled after waiting
the specified number of centiseconds (specified per lock).  This feature
is only available for locks requested through libdlm (can be enabled for
kernel dlm users if there's a use for it.)

If the new DLM_LSFL_TIMEWARN flag is set when creating the lockspace, then
a warning message will be sent to userspace (using genetlink) after a
request/conversion has been waiting for a given number of centiseconds
(configurable per node).  The time warnings will be used in the future
to do deadlock detection in userspace.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
15 files changed:
fs/dlm/Makefile
fs/dlm/config.c
fs/dlm/config.h
fs/dlm/dlm_internal.h
fs/dlm/lock.c
fs/dlm/lock.h
fs/dlm/lockspace.c
fs/dlm/main.c
fs/dlm/member.c
fs/dlm/netlink.c [new file with mode: 0644]
fs/dlm/recoverd.c
fs/dlm/user.c
include/linux/Kbuild
include/linux/dlm.h
include/linux/dlm_netlink.h [new file with mode: 0644]