linux/fs/dlm
David Teigland ce03f12b37 [DLM] change lkid format
A lock id is a uint32 and is used as an opaque reference to the lock.  For
userland apps, the lkid is passed up, through libdlm, as the return value
from a write() on the dlm device.  This created a problem when the high
bit was 1, making the lkid look like an error.  This is fixed by changing
how the lkid is composed.  The low 16 bits identified the hash bucket for
the lock and the high 16 bits were a per-bucket counter (which eventually
hit 0x8000 causing the problem).  These are simply swapped around; the
number of hash table buckets is far below 0x8000, making all lkid's
positive when viewed as signed.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-05-01 09:11:15 +01:00
..
ast.c
ast.h
config.c
config.h
debug_fs.c
dir.c
dir.h
dlm_internal.h [DLM] add orphan purging code (1/2) 2007-05-01 09:11:10 +01:00
Kconfig
lock.c [DLM] change lkid format 2007-05-01 09:11:15 +01:00
lock.h [DLM] interface for purge (2/2) 2007-05-01 09:11:12 +01:00
lockspace.c [DLM] overlapping cancel and unlock 2007-05-01 09:11:00 +01:00
lockspace.h
lowcomms-sctp.c
lowcomms-tcp.c [DLM] fix coverity-spotted stupidity 2007-05-01 09:10:57 +01:00
lowcomms.h
lvb_table.h
main.c
Makefile
member.c
member.h
memory.c
memory.h
midcomms.c
midcomms.h
rcom.c
rcom.h
recover.c
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
user.c [DLM] interface for purge (2/2) 2007-05-01 09:11:12 +01:00
user.h
util.c
util.h