linux/fs/ocfs2/dlm
Sunil Mushran 52987e2ab4 ocfs2/dlm: Add missing dlm_lockres_put()s in migration path
During migration, the recovery master node may be asked to master a lockres
it may not know about. In that case, it would not only have to create a
lockres and add it to the hash, but also remember to to do the _put_
corresponding to the kref_init in dlm_init_lockres(), as soon as the migration
is completed. Yes, we don't wait for the dlm_purge_lockres() to do that
matching put. Note the ref added for it being in the hash protects the lockres
from being freed prematurely.

This patch adds that missing put, as described above, to plug a memleak.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2008-03-10 15:14:11 -07:00
..
dlmapi.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmast.c byteorder: move le32_add_cpu & friends from OCFS2 to core 2008-02-08 09:22:32 -08:00
dlmcommon.h ocfs2/dlm: Add missing dlm_lockres_put()s in migration path 2008-03-10 15:14:11 -07:00
dlmconvert.c ocfs2: Use dlm_print_one_lock_resource for lock resource print 2008-03-10 15:13:50 -07:00
dlmconvert.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
dlmdebug.c ocfs2_dlm: Cookies in locks not being printed correctly in error messages 2007-02-07 12:06:24 -08:00
dlmdomain.c ocfs2: Fix endian bug in o2dlm protocol negotiation. 2008-03-10 15:13:54 -07:00
dlmdomain.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
dlmfs.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmfsver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmfsver.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
dlmlock.c ocfs2: Added post handler callable function in o2net message handler 2007-02-07 12:06:56 -08:00
dlmmaster.c ocfs2/dlm: Add missing dlm_lock_put()s 2008-03-10 15:14:09 -07:00
dlmrecovery.c ocfs2/dlm: Add missing dlm_lockres_put()s in migration path 2008-03-10 15:14:11 -07:00
dlmthread.c [PATCH] ocfs2: use __set_current_state() 2007-05-02 15:07:50 -07:00
dlmunlock.c ocfs2: Added post handler callable function in o2net message handler 2007-02-07 12:06:56 -08:00
dlmver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmver.h [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
Makefile [PATCH] OCFS2: The Second Oracle Cluster Filesystem 2006-01-03 11:45:47 -08:00
userdlm.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
userdlm.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00