Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128964
b: refs/heads/master
c: 75ccf47
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Sep 30, 2008
1 parent 423c544 commit 8c6af1a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 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: 45b8c9a8b1e15bf79c2c17ec217adf96785f8011
refs/heads/master: 75ccf47d13bfb66de7faf596bfe497b9af7aaa40
14 changes: 13 additions & 1 deletion trunk/fs/btrfs/async-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,20 @@ int btrfs_requeue_work(struct btrfs_work *work)
spin_lock_irqsave(&worker->lock, flags);
atomic_inc(&worker->num_pending);
list_add_tail(&work->list, &worker->pending);
check_busy_worker(worker);

/* by definition we're busy, take ourselves off the idle
* list
*/
if (worker->idle) {
spin_lock_irqsave(&worker->workers->lock, flags);
worker->idle = 0;
list_move_tail(&worker->worker_list,
&worker->workers->worker_list);
spin_unlock_irqrestore(&worker->workers->lock, flags);
}

spin_unlock_irqrestore(&worker->lock, flags);

out:
return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -5145,6 +5145,8 @@ int btrfs_read_block_groups(struct btrfs_root *root)

ret = btrfs_add_block_group_cache(root->fs_info, cache);
BUG_ON(ret);

set_avail_alloc_bits(root->fs_info, cache->flags);
}
ret = 0;
error:
Expand Down

0 comments on commit 8c6af1a

Please sign in to comment.