mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-11 17:36:57 +00:00
Using the new interval tree code we add a tree for each lock status list to efficiently track ranged requests. Internally, most operations on a resources lock status list (granted, waiting, converting) then are turned into operations within a given range. There is no API change other than a new call, dlm_lock_range() and a new structure, 'struct dlm_key' to define our range endpoints. Keys can have arbitrary lengths and are compared via memcmp. A ranged blocking ast type is defined so that users of dlm_lock_range() can know which range they are blocking. A rudimentary test, dlmtest.ko is included. TODO: - Update userspace entry points, need to add one for new lock call - Manage backwards compatibility with network protocol Signed-off-by: Mark Fasheh <mfasheh@versity.com>
21 lines
351 B
Makefile
21 lines
351 B
Makefile
obj-$(CONFIG_DLM) += dlm.o dlmtest.o
|
|
dlm-y := ast.o \
|
|
config.o \
|
|
dir.o \
|
|
lock.o \
|
|
lockspace.o \
|
|
main.o \
|
|
member.o \
|
|
memory.o \
|
|
midcomms.o \
|
|
netlink.o \
|
|
lowcomms.o \
|
|
plock.o \
|
|
rcom.o \
|
|
recover.o \
|
|
recoverd.o \
|
|
requestqueue.o \
|
|
user.o \
|
|
util.o
|
|
dlm-$(CONFIG_DLM_DEBUG) += debug_fs.o
|