Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210525
b: refs/heads/master
c: 6628bc7
h: refs/heads/master
i:
  210523: 1bede72
v: v3
  • Loading branch information
Artem Bityutskiy authored and Jens Axboe committed Aug 27, 2010
1 parent d6b1c3c commit ed49c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 2a643ec67f9efc4b6921a3dd6e257f3b5360622b
refs/heads/master: 6628bc74f1aa9c35dd386320bf7ec04f12edb1b3
7 changes: 5 additions & 2 deletions trunk/mm/backing-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ static int bdi_forker_thread(void *ptr)
switch (action) {
case FORK_THREAD:
__set_current_state(TASK_RUNNING);
task = kthread_run(bdi_writeback_thread, &bdi->wb, "flush-%s",
dev_name(bdi->dev));
task = kthread_create(bdi_writeback_thread, &bdi->wb,
"flush-%s", dev_name(bdi->dev));
if (IS_ERR(task)) {
/*
* If thread creation fails, force writeout of
Expand All @@ -457,10 +457,13 @@ static int bdi_forker_thread(void *ptr)
/*
* The spinlock makes sure we do not lose
* wake-ups when racing with 'bdi_queue_work()'.
* And as soon as the bdi thread is visible, we
* can start it.
*/
spin_lock_bh(&bdi->wb_lock);
bdi->wb.task = task;
spin_unlock_bh(&bdi->wb_lock);
wake_up_process(task);
}
break;

Expand Down

0 comments on commit ed49c35

Please sign in to comment.