Skip to content

Commit a215540

Browse files
Alexander Aringteigland
authored andcommitted
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 <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent b88b249 commit a215540

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/dlm/lock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ int dlm_master_lookup(struct dlm_ls *ls, int from_nodeid, const char *name,
13851385
r->res_dir_nodeid = our_nodeid;
13861386
r->res_master_nodeid = from_nodeid;
13871387
r->res_nodeid = from_nodeid;
1388-
kref_init(&r->res_ref);
13891388
rsb_set_flag(r, RSB_TOSS);
13901389

13911390
write_lock_bh(&ls->ls_rsbtbl_lock);

0 commit comments

Comments
 (0)