linux/fs/ocfs2
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
..
cluster byteorder: move le32_add_cpu & friends from OCFS2 to core 2008-02-08 09:22:32 -08:00
dlm ocfs2/dlm: Add missing dlm_lockres_put()s in migration path 2008-03-10 15:14:11 -07:00
alloc.c Pagecache zeroing: zero_user_segment, zero_user_segments and zero_user 2008-02-05 09:44:13 -08:00
alloc.h
aops.c [PATCH] fs/ocfs2/aops.c: Correct use of ! and & 2008-03-03 15:50:21 -08:00
aops.h
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c [PATCH] ocfs2: le*_add_cpu conversion 2008-03-03 15:50:21 -08:00
dir.h
dlmglue.c [PATCH] [OCFS2]: constify function pointer tables 2008-03-10 15:13:57 -07:00
dlmglue.h [2.6 patch] fs/ocfs2/: possible cleanups 2008-03-03 15:50:21 -08:00
export.c
export.h
extent_map.c
extent_map.h
file.c
file.h
heartbeat.c [2.6 patch] fs/ocfs2/: possible cleanups 2008-03-03 15:50:21 -08:00
heartbeat.h [2.6 patch] fs/ocfs2/: possible cleanups 2008-03-03 15:50:21 -08:00
inode.c
inode.h
ioctl.c
ioctl.h
journal.c
journal.h
localalloc.c [PATCH] ocfs2: le*_add_cpu conversion 2008-03-03 15:50:21 -08:00
localalloc.h
locks.c
locks.h
Makefile
mmap.c
mmap.h
namei.c
namei.h
ocfs1_fs_compat.h
ocfs2_fs.h
ocfs2_lockid.h
ocfs2_lockingver.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
ocfs2.h byteorder: move le32_add_cpu & friends from OCFS2 to core 2008-02-08 09:22:32 -08:00
resize.c ocfs2: Fix an endian bug in online resize. 2008-03-10 15:14:07 -07:00
resize.h
slot_map.c
slot_map.h
suballoc.c
suballoc.h
super.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h