aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/user.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-10-27 16:45:21 -0400
committerDavid Teigland <teigland@redhat.com>2022-11-08 12:59:41 -0600
commit61bed0baa4dba17dd06cdfe20481a580718d6c7c (patch)
tree19a4c23f0b1b341d4eeed02e9482b4b9c82973e8 /fs/dlm/user.h
parent27d3994ebb5cea9c26f52064a3da8b0e606a8d11 (diff)
downloadlinux-61bed0baa4dba17dd06cdfe20481a580718d6c7c.tar.gz
fs: dlm: use a non-static queue for callbacks
This patch will introducde a queue implementation for callbacks by using the Linux lists. The current callback queue handling is implemented by a static limit of 6 entries, see DLM_CALLBACKS_SIZE. The sequence number inside the callback structure was used to see if the entries inside the static entry is valid or not. We don't need any sequence numbers anymore with a dynamic datastructure with grows and shrinks during runtime to offer such functionality. We assume that every callback will be delivered to the DLM user if once queued. Therefore the callback flag DLM_CB_SKIP was dropped and the check for skipping bast was moved before worker handling and not skip while the callback worker executes. This will reduce unnecessary queues of the callback worker. All last callback saves are pointers now and don't need to copied over. There is a reference counter for callback structures which will care about to free the callback structures at the right time if they are not referenced anymore. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/user.h')
-rw-r--r--fs/dlm/user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/user.h b/fs/dlm/user.h
index 6b9bce6b96e08..33059452d79e0 100644
--- a/fs/dlm/user.h
+++ b/fs/dlm/user.h
@@ -7,7 +7,7 @@
#define __USER_DOT_H__
void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode,
- int status, uint32_t sbflags, uint64_t seq);
+ int status, uint32_t sbflags);
int dlm_user_init(void);
void dlm_user_exit(void);
int dlm_device_deregister(struct dlm_ls *ls);