diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-05-28 17:12:32 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-05-31 11:04:54 -0500 |
commit | a2155402bf0e03a3cd2ba21a6a0d82426379d8e0 (patch) | |
tree | fd8711da782e0fc2cfbf1aaa0d5bee2dee0db681 /fs/dlm | |
parent | b88b249ba708a36b976bc1635b0b8a3556f1691d (diff) |
dlm: don't kref_init rsbs created for toss list
This patch removes a kref_init() that isn't necessary because the rsb is
created for toss list. Under toss list the rsb should not have any
reference counting logic. If in theory the rsb gets to into keep list
then a kref_init() for res_ref will be initiated.
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/lock.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index f103b8c30592..e66972ed97b1 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -1385,7 +1385,6 @@ int dlm_master_lookup(struct dlm_ls *ls, int from_nodeid, const char *name, r->res_dir_nodeid = our_nodeid; r->res_master_nodeid = from_nodeid; r->res_nodeid = from_nodeid; - kref_init(&r->res_ref); rsb_set_flag(r, RSB_TOSS); write_lock_bh(&ls->ls_rsbtbl_lock); |