Skip to content
Commit ff0a522e authored by Sunil Mushran's avatar Sunil Mushran
Browse files

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: default avatarSunil Mushran <sunil.mushran@oracle.com>
parent ed8625c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment