Skip to content

Commit 627e421

Browse files
committed
Btrfs: fix worker thread double spin_lock_irq
The exit-on-idle code for async worker threads was incorrectly calling spin_lock_irq with interrupts already off. Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 parent 3e99d8e commit 627e421

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/btrfs/async-thread.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static int try_worker_shutdown(struct btrfs_worker_thread *worker)
185185
int freeit = 0;
186186

187187
spin_lock_irq(&worker->lock);
188-
spin_lock_irq(&worker->workers->lock);
188+
spin_lock(&worker->workers->lock);
189189
if (worker->workers->num_workers > 1 &&
190190
worker->idle &&
191191
!worker->working &&
@@ -196,7 +196,7 @@ static int try_worker_shutdown(struct btrfs_worker_thread *worker)
196196
list_del_init(&worker->worker_list);
197197
worker->workers->num_workers--;
198198
}
199-
spin_unlock_irq(&worker->workers->lock);
199+
spin_unlock(&worker->workers->lock);
200200
spin_unlock_irq(&worker->lock);
201201

202202
if (freeit)

0 commit comments

Comments
 (0)