aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/locking')
-rw-r--r--fs/gfs2/locking/dlm/lock.c10
-rw-r--r--fs/gfs2/locking/dlm/lock_dlm.h2
-rw-r--r--fs/gfs2/locking/dlm/thread.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c
index d799865b64a4..666d696dc8ce 100644
--- a/fs/gfs2/locking/dlm/lock.c
+++ b/fs/gfs2/locking/dlm/lock.c
@@ -223,7 +223,7 @@ void gdlm_put_lock(lm_lock_t *lock)
223 gdlm_delete_lp((struct gdlm_lock *) lock); 223 gdlm_delete_lp((struct gdlm_lock *) lock);
224} 224}
225 225
226unsigned int gdlm_do_lock(struct gdlm_lock *lp, struct dlm_range *range) 226unsigned int gdlm_do_lock(struct gdlm_lock *lp)
227{ 227{
228 struct gdlm_ls *ls = lp->ls; 228 struct gdlm_ls *ls = lp->ls;
229 struct gdlm_strname str; 229 struct gdlm_strname str;
@@ -258,7 +258,7 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp, struct dlm_range *range)
258 258
259 error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf, 259 error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf,
260 str.name, str.namelen, 0, gdlm_ast, (void *) lp, 260 str.name, str.namelen, 0, gdlm_ast, (void *) lp,
261 bast ? gdlm_bast : NULL, range); 261 bast ? gdlm_bast : NULL);
262 262
263 if ((error == -EAGAIN) && (lp->lkf & DLM_LKF_NOQUEUE)) { 263 if ((error == -EAGAIN) && (lp->lkf & DLM_LKF_NOQUEUE)) {
264 lp->lksb.sb_status = -EAGAIN; 264 lp->lksb.sb_status = -EAGAIN;
@@ -316,7 +316,7 @@ unsigned int gdlm_lock(lm_lock_t *lock, unsigned int cur_state,
316 lp->req = make_mode(req_state); 316 lp->req = make_mode(req_state);
317 lp->lkf = make_flags(lp, flags, lp->cur, lp->req); 317 lp->lkf = make_flags(lp, flags, lp->cur, lp->req);
318 318
319 return gdlm_do_lock(lp, NULL); 319 return gdlm_do_lock(lp);
320} 320}
321 321
322unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state) 322unsigned int gdlm_unlock(lm_lock_t *lock, unsigned int cur_state)
@@ -425,7 +425,7 @@ static int hold_null_lock(struct gdlm_lock *lp)
425 set_bit(LFL_INLOCK, &lpn->flags); 425 set_bit(LFL_INLOCK, &lpn->flags);
426 426
427 init_completion(&lpn->ast_wait); 427 init_completion(&lpn->ast_wait);
428 gdlm_do_lock(lpn, NULL); 428 gdlm_do_lock(lpn);
429 wait_for_completion(&lpn->ast_wait); 429 wait_for_completion(&lpn->ast_wait);
430 error = lp->lksb.sb_status; 430 error = lp->lksb.sb_status;
431 if (error) { 431 if (error) {
@@ -499,7 +499,7 @@ void gdlm_sync_lvb(lm_lock_t *lock, char *lvb)
499 lp->req = DLM_LOCK_EX; 499 lp->req = DLM_LOCK_EX;
500 lp->lkf = make_flags(lp, 0, lp->cur, lp->req); 500 lp->lkf = make_flags(lp, 0, lp->cur, lp->req);
501 501
502 gdlm_do_lock(lp, NULL); 502 gdlm_do_lock(lp);
503 wait_for_completion(&lp->ast_wait); 503 wait_for_completion(&lp->ast_wait);
504} 504}
505 505
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h
index fa545f7872e8..6d76146953ce 100644
--- a/fs/gfs2/locking/dlm/lock_dlm.h
+++ b/fs/gfs2/locking/dlm/lock_dlm.h
@@ -165,7 +165,7 @@ int gdlm_create_lp(struct gdlm_ls *, struct lm_lockname *, struct gdlm_lock **);
165void gdlm_delete_lp(struct gdlm_lock *); 165void gdlm_delete_lp(struct gdlm_lock *);
166int gdlm_add_lvb(struct gdlm_lock *); 166int gdlm_add_lvb(struct gdlm_lock *);
167void gdlm_del_lvb(struct gdlm_lock *); 167void gdlm_del_lvb(struct gdlm_lock *);
168unsigned int gdlm_do_lock(struct gdlm_lock *, struct dlm_range *); 168unsigned int gdlm_do_lock(struct gdlm_lock *);
169unsigned int gdlm_do_unlock(struct gdlm_lock *); 169unsigned int gdlm_do_unlock(struct gdlm_lock *);
170 170
171int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); 171int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **);
diff --git a/fs/gfs2/locking/dlm/thread.c b/fs/gfs2/locking/dlm/thread.c
index 6fe669cd334b..3e2edcc2dbf6 100644
--- a/fs/gfs2/locking/dlm/thread.c
+++ b/fs/gfs2/locking/dlm/thread.c
@@ -308,7 +308,7 @@ static int gdlm_thread(void *data)
308 process_blocking(lp, blocking); 308 process_blocking(lp, blocking);
309 309
310 else if (submit) 310 else if (submit)
311 gdlm_do_lock(lp, NULL); 311 gdlm_do_lock(lp);
312 312
313 if (drop) 313 if (drop)
314 ls->fscb(ls->fsdata, LM_CB_DROPLOCKS, NULL); 314 ls->fscb(ls->fsdata, LM_CB_DROPLOCKS, NULL);