Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29703
b: refs/heads/master
c: d616e09
h: refs/heads/master
i:
  29701: 555258c
  29699: 5f7fb24
  29695: 149aa9b
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 25, 2006
1 parent 167f772 commit ff7bce4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: bc64863814b14a4f75884746e68d3bf9f96b3559
refs/heads/master: d616e09ab33aa4d013a93c9b393efd5cebf78521
15 changes: 7 additions & 8 deletions trunk/mm/pdflush.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,20 @@ static int __pdflush(struct pdflush_work *my_work)
list_move(&my_work->list, &pdflush_list);
my_work->when_i_went_to_sleep = jiffies;
spin_unlock_irq(&pdflush_lock);

schedule();
if (try_to_freeze()) {
spin_lock_irq(&pdflush_lock);
continue;
}

try_to_freeze();
spin_lock_irq(&pdflush_lock);
if (!list_empty(&my_work->list)) {
printk("pdflush: bogus wakeup!\n");
/*
* Someone woke us up, but without removing our control
* structure from the global list. swsusp will do this
* in try_to_freeze()->refrigerator(). Handle it.
*/
my_work->fn = NULL;
continue;
}
if (my_work->fn == NULL) {
printk("pdflush: NULL work function\n");
printk("pdflush: bogus wakeup\n");
continue;
}
spin_unlock_irq(&pdflush_lock);
Expand Down

0 comments on commit ff7bce4

Please sign in to comment.