diff options
Diffstat (limited to 'fs/btrfs/async-thread.c')
| -rw-r--r-- | fs/btrfs/async-thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index c0861e781cdb..7ec14097fef1 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include <linux/kthread.h> | 19 | #include <linux/kthread.h> |
| 20 | #include <linux/slab.h> | ||
| 20 | #include <linux/list.h> | 21 | #include <linux/list.h> |
| 21 | #include <linux/spinlock.h> | 22 | #include <linux/spinlock.h> |
| 22 | #include <linux/freezer.h> | 23 | #include <linux/freezer.h> |
| @@ -376,6 +377,7 @@ again: | |||
| 376 | if (!list_empty(&worker->pending) || | 377 | if (!list_empty(&worker->pending) || |
| 377 | !list_empty(&worker->prio_pending)) { | 378 | !list_empty(&worker->prio_pending)) { |
| 378 | spin_unlock_irq(&worker->lock); | 379 | spin_unlock_irq(&worker->lock); |
| 380 | set_current_state(TASK_RUNNING); | ||
| 379 | goto again; | 381 | goto again; |
| 380 | } | 382 | } |
| 381 | 383 | ||
