diff options
author | David Teigland <teigland@redhat.com> | 2011-07-07 14:05:03 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2011-07-12 16:02:09 -0500 |
commit | 3881ac04ebf94268ba3d6e486aa524fd41f893a9 (patch) | |
tree | 2ddb5c099f60f541d7e50f669f84fd58c3920bec /fs/dlm/config.h | |
parent | 3d6aa675fff9eee5a6339d67b355b63a6d69565f (diff) |
dlm: improve rsb searches
By pre-allocating rsb structs before searching the hash
table, they can be inserted immediately. This avoids
always having to repeat the search when adding the struct
to hash list.
This also adds space to the rsb struct for a max resource
name, so an rsb allocation can be used by any request.
The constant size also allows us to finally use a slab
for the rsb structs.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/config.h')
-rw-r--r-- | fs/dlm/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/config.h b/fs/dlm/config.h index 260574463d29..3099d0dd26c0 100644 --- a/fs/dlm/config.h +++ b/fs/dlm/config.h @@ -28,6 +28,7 @@ struct dlm_config_info { int ci_protocol; int ci_timewarn_cs; int ci_waitwarn_us; + int ci_new_rsb_count; }; extern struct dlm_config_info dlm_config; |