Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76029
b: refs/heads/master
c: 8cbc434
h: refs/heads/master
i:
  76027: 6421537
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Jan 25, 2008
1 parent 725b92c commit a0f7571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7227e46423a57b4df27a2d75b5869bd3ae654d0
refs/heads/master: 8cbc4342478311c2a85260a7ca54d96cb7f71f7b
9 changes: 2 additions & 7 deletions trunk/fs/gfs2/locking/dlm/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,13 @@ static int gdlm_thread(void *data, int blist)
struct gdlm_ls *ls = (struct gdlm_ls *) data;
struct gdlm_lock *lp = NULL;
uint8_t complete, blocking, submit, drop;
DECLARE_WAITQUEUE(wait, current);

/* Only thread1 is allowed to do blocking callbacks since gfs
may wait for a completion callback within a blocking cb. */

while (!kthread_should_stop()) {
set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&ls->thread_wait, &wait);
if (no_work(ls, blist))
schedule();
remove_wait_queue(&ls->thread_wait, &wait);
set_current_state(TASK_RUNNING);
wait_event_interruptible(ls->thread_wait,
!no_work(ls, blist) || kthread_should_stop());

complete = blocking = submit = drop = 0;

Expand Down

0 comments on commit a0f7571

Please sign in to comment.