diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-06-03 23:55:55 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-06-11 19:57:49 +0200 |
commit | f328a26eeb5380bc74e58cb9c3280a4908452df7 (patch) | |
tree | 64cecb36a7ccdee0c9abffee990000f84c0f6e46 /fs/dlm | |
parent | dlm: use LSFL_FS to check for kernel lockspace (diff) | |
download | linux-f328a26eeb5380bc74e58cb9c3280a4908452df7.tar.xz linux-f328a26eeb5380bc74e58cb9c3280a4908452df7.zip |
dlm: introduce DLM_LSFL_SOFTIRQ_SAFE
Introduce a new external lockspace flag DLM_LSFL_SOFTIRQ_SAFE. A
lockspace user will set this flag if it can handle dlm running the
callback functions from softirq context. When not set, dlm will
continue to run callback functions from the dlm_callback workqueue.
The new lockspace flag cannot be used for user space lockspaces, so
a uapi placeholder definition is used for the new flag value.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lockspace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 8a4351ee9a42..a7ac0fcb4ef3 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -629,6 +629,9 @@ int dlm_new_user_lockspace(const char *name, const char *cluster, void *ops_arg, int *ops_result, dlm_lockspace_t **lockspace) { + if (flags & DLM_LSFL_SOFTIRQ) + return -EINVAL; + return __dlm_new_lockspace(name, cluster, flags, lvblen, ops, ops_arg, ops_result, lockspace); } |