]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2/dlm: Take inflight reference count for remotely mastered resources too
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 29 Mar 2012 18:31:22 +0000 (11:31 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 29 Mar 2012 19:41:00 +0000 (12:41 -0700)
commit2119aff0fe2b12e80a0a45f2cb837afe9b2cdaba
tree36b9f7852d996abda99fc8632c7d15ae7be51d87
parentc3ee7ea8259c2426ddd3ffa3531c47a789476f2e
ocfs2/dlm: Take inflight reference count for remotely mastered resources too

The inflight reference count, in the lock resource, is taken to pin the resource
in memory. We take it when a new resource is created and release it after a
lock is attached to it. We do this to prevent the resource from getting purged
prematurely.

Earlier this reference count was being taken for locally mastered resources
only. This patch extends the same functionality for remotely mastered ones.

We are doing this because the same premature purging could occur for remotely
mastered resources if the remote node were to die before completion of the
create lock.

Fix for Oracle bug#12405575.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Conflicts:

fs/ocfs2/dlm/dlmmaster.c

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
fs/ocfs2/dlm/dlmlock.c
fs/ocfs2/dlm/dlmmaster.c
fs/ocfs2/dlm/dlmthread.c