Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dlmunlock.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/types.h>
#include <linux/highmem.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <linux/random.h>
#include <linux/blkdev.h>
#include <linux/socket.h>
#include <linux/inet.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include "cluster/heartbeat.h"
#include "cluster/nodemanager.h"
#include "cluster/tcp.h"
#include "dlmapi.h"
#include "dlmcommon.h"
#include "cluster/masklog.h"

Go to the source code of this file.

Macros

#define MLOG_MASK_PREFIX   ML_DLM
 
#define DLM_UNLOCK_FREE_LOCK   0x00000001
 
#define DLM_UNLOCK_CALL_AST   0x00000002
 
#define DLM_UNLOCK_REMOVE_LOCK   0x00000004
 
#define DLM_UNLOCK_REGRANT_LOCK   0x00000008
 
#define DLM_UNLOCK_CLEAR_CONVERT_TYPE   0x00000010
 

Functions

void dlm_commit_pending_unlock (struct dlm_lock_resource *res, struct dlm_lock *lock)
 
void dlm_commit_pending_cancel (struct dlm_lock_resource *res, struct dlm_lock *lock)
 
int dlm_unlock_lock_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
enum dlm_status dlmunlock (struct dlm_ctxt *dlm, struct dlm_lockstatus *lksb, int flags, dlm_astunlockfunc_t *unlockast, void *data)
 
 EXPORT_SYMBOL_GPL (dlmunlock)
 

Macro Definition Documentation

#define DLM_UNLOCK_CALL_AST   0x00000002

Definition at line 52 of file dlmunlock.c.

#define DLM_UNLOCK_CLEAR_CONVERT_TYPE   0x00000010

Definition at line 55 of file dlmunlock.c.

#define DLM_UNLOCK_FREE_LOCK   0x00000001

Definition at line 51 of file dlmunlock.c.

#define DLM_UNLOCK_REGRANT_LOCK   0x00000008

Definition at line 54 of file dlmunlock.c.

#define DLM_UNLOCK_REMOVE_LOCK   0x00000004

Definition at line 53 of file dlmunlock.c.

#define MLOG_MASK_PREFIX   ML_DLM

Definition at line 48 of file dlmunlock.c.

Function Documentation

void dlm_commit_pending_cancel ( struct dlm_lock_resource res,
struct dlm_lock lock 
)

Definition at line 272 of file dlmunlock.c.

void dlm_commit_pending_unlock ( struct dlm_lock_resource res,
struct dlm_lock lock 
)

Definition at line 264 of file dlmunlock.c.

int dlm_unlock_lock_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 385 of file dlmunlock.c.

enum dlm_status dlmunlock ( struct dlm_ctxt dlm,
struct dlm_lockstatus lksb,
int  flags,
dlm_astunlockfunc_t unlockast,
void data 
)

Definition at line 583 of file dlmunlock.c.

EXPORT_SYMBOL_GPL ( dlmunlock  )