]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: Add missing dlm_lock_put()s
authorSunil Mushran <sunil.mushran@oracle.com>
Sat, 1 Mar 2008 22:04:20 +0000 (14:04 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 10 Mar 2008 22:14:09 +0000 (15:14 -0700)
commit79e0c6245100bdbaccad16dc977760c2122d7394
treeb20b13e1a15bfa33c1ebba7a57fabfe23ad9c3eb
parent3f80ef64f8cdfb0a46ffa680ddd8b9e85f55cfad
ocfs2/dlm: Add missing dlm_lock_put()s

Normally locks for remote nodes are freed when that node sends an UNLOCK
message to the master. The master node tags an DLM_UNLOCK_FREE_LOCK action
to do an extra put on the lock at the end.

However, there are times when the master node has to free the locks for the
remote nodes forcibly.

Two cases when this happens are:
1. When the master has migrated the lockres plus all locks to another node.
2. When the master is clearing all the locks of a dead node.

It was in the above two conditions that the dlm was missing the extra put.

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>
fs/ocfs2/dlm/dlmmaster.c
fs/ocfs2/dlm/dlmrecovery.c