]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/btrfs/async-thread.c
Btrfs: don't walk around with task->state != TASK_RUNNING
[net-next-2.6.git] / fs / btrfs / async-thread.c
index 462859a30141faa7c6ee645ad750cf0ae48c9692..7ec14097fef1f3bbb9b7611a96111c55d0ba9e19 100644 (file)
@@ -377,6 +377,7 @@ again:
                                if (!list_empty(&worker->pending) ||
                                    !list_empty(&worker->prio_pending)) {
                                        spin_unlock_irq(&worker->lock);
+                                       set_current_state(TASK_RUNNING);
                                        goto again;
                                }