Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68450
b: refs/heads/master
c: e716dd3
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed Jun 28, 2007
1 parent 414b595 commit 2f85105
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 66bfaeaa90432a585d7e9e70605ee4df3ede9890
refs/heads/master: e716dd3644c2a79d6ffa4359bac06f57479dcb34
8 changes: 4 additions & 4 deletions trunk/fs/jffs2/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int jffs2_garbage_collect_thread(void *_c)

for (;;) {
allow_signal(SIGHUP);

again:
if (!jffs2_thread_should_wake(c)) {
set_current_state (TASK_INTERRUPTIBLE);
D1(printk(KERN_DEBUG "jffs2_garbage_collect_thread sleeping...\n"));
Expand All @@ -94,9 +94,6 @@ static int jffs2_garbage_collect_thread(void *_c)
schedule();
}

if (try_to_freeze())
continue;

/* This thread is purely an optimisation. But if it runs when
other things could be running, it actually makes things a
lot worse. Use yield() and put it at the back of the runqueue
Expand All @@ -111,6 +108,9 @@ static int jffs2_garbage_collect_thread(void *_c)
siginfo_t info;
unsigned long signr;

if (try_to_freeze())
goto again;

signr = dequeue_signal_lock(current, &current->blocked, &info);

switch(signr) {
Expand Down

0 comments on commit 2f85105

Please sign in to comment.