diff options
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index 08cc08f037a6..c1e0b0caf9cc 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c | |||
@@ -262,7 +262,7 @@ static struct btrfs_work *get_next_work(struct btrfs_worker_thread *worker, | |||
262 | struct btrfs_work *work = NULL; | 262 | struct btrfs_work *work = NULL; |
263 | struct list_head *cur = NULL; | 263 | struct list_head *cur = NULL; |
264 | 264 | ||
265 | if(!list_empty(prio_head)) | 265 | if (!list_empty(prio_head)) |
266 | cur = prio_head->next; | 266 | cur = prio_head->next; |
267 | 267 | ||
268 | smp_mb(); | 268 | smp_mb(); |
@@ -495,6 +495,7 @@ static int __btrfs_start_workers(struct btrfs_workers *workers) | |||
495 | spin_lock_irq(&workers->lock); | 495 | spin_lock_irq(&workers->lock); |
496 | if (workers->stopping) { | 496 | if (workers->stopping) { |
497 | spin_unlock_irq(&workers->lock); | 497 | spin_unlock_irq(&workers->lock); |
498 | ret = -EINVAL; | ||
498 | goto fail_kthread; | 499 | goto fail_kthread; |
499 | } | 500 | } |
500 | list_add_tail(&worker->worker_list, &workers->idle_list); | 501 | list_add_tail(&worker->worker_list, &workers->idle_list); |