diff options
Diffstat (limited to 'fs/btrfs/async-thread.c')
| -rw-r--r-- | fs/btrfs/async-thread.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index 6e4f6c50a120..019e8af449ab 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c | |||
| @@ -424,11 +424,11 @@ int btrfs_requeue_work(struct btrfs_work *work) | |||
| 424 | * list | 424 | * list | 
| 425 | */ | 425 | */ | 
| 426 | if (worker->idle) { | 426 | if (worker->idle) { | 
| 427 | spin_lock_irqsave(&worker->workers->lock, flags); | 427 | spin_lock(&worker->workers->lock); | 
| 428 | worker->idle = 0; | 428 | worker->idle = 0; | 
| 429 | list_move_tail(&worker->worker_list, | 429 | list_move_tail(&worker->worker_list, | 
| 430 | &worker->workers->worker_list); | 430 | &worker->workers->worker_list); | 
| 431 | spin_unlock_irqrestore(&worker->workers->lock, flags); | 431 | spin_unlock(&worker->workers->lock); | 
| 432 | } | 432 | } | 
| 433 | if (!worker->working) { | 433 | if (!worker->working) { | 
| 434 | wake = 1; | 434 | wake = 1; | 
