aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-12 14:46:17 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit1cc127b5d1b71453091859301de4a7dd6ee96fa8 (patch)
treecb1280305a04eb5e6838f91781e668e3bdeed208 /fs/btrfs/volumes.c
parentdf5b5520b21d8a2554ede65c09b288833c77144d (diff)
Btrfs: Add a thread pool just for submit_bio
If a bio submission is after a lock holder waiting for the bio on the work queue, it is possible to deadlock. Move the bios into their own pool. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index c57458ce6339..ba3968571024 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2112,7 +2112,8 @@ int schedule_bio(struct btrfs_root *root, struct btrfs_device *device,
2112 spin_unlock(&device->io_lock); 2112 spin_unlock(&device->io_lock);
2113 2113
2114 if (should_queue) 2114 if (should_queue)
2115 btrfs_queue_worker(&root->fs_info->workers, &device->work); 2115 btrfs_queue_worker(&root->fs_info->submit_workers,
2116 &device->work);
2116 return 0; 2117 return 0;
2117} 2118}
2118 2119