DLM lock and unlock functions
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Fri, 7 Mar 2014 19:49:26 +0000 (13:49 -0600)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 23 Feb 2015 13:28:42 +0000 (07:28 -0600)
commit47741b7ca7b389d1b45d7cf15edc279c9be32fa8
tree828b58d3b18618bfe2bf30fde3e44fb93f6efec2
parent8e854e9cfd1cc3837b4bd96643d5174a72d9f741
DLM lock and unlock functions

A dlm_lock_resource is a structure which contains all information
required for locking using DLM. The init function allocates the
lock and acquires the lock in NL mode. The unlock function
converts the lock resource to NL mode. This is done to preserve
LVB and for faster processing of locks. The lock resource is
DLM unlocked only in the lockres_free function, which is the end
of life of the lock resource.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
drivers/md/md-cluster.c