Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264031
b: refs/heads/master
c: 09f40f9
h: refs/heads/master
i:
  264029: 4c72527
  264027: 1d54492
  264023: d8ff5ef
  264015: 459a4de
  263999: 60822bf
v: v3
  • Loading branch information
Jan Kara authored and Jens Axboe committed Sep 2, 2011
1 parent b1913c7 commit 53a5956
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a042aa4b8e994a15d2c2ee750219971f0ab3905
refs/heads/master: 09f40f98bfa2ac22a332a713629a2f8f92896834
7 changes: 7 additions & 0 deletions trunk/mm/backing-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,13 @@ static int bdi_forker_thread(void *ptr)
}

spin_lock_bh(&bdi_lock);
/*
* In the following loop we are going to check whether we have
* some work to do without any synchronization with tasks
* waking us up to do work for them. So we have to set task
* state already here so that we don't miss wakeups coming
* after we verify some condition.
*/
set_current_state(TASK_INTERRUPTIBLE);

list_for_each_entry(bdi, &bdi_list, bdi_list) {
Expand Down

0 comments on commit 53a5956

Please sign in to comment.