diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-06-12 14:46:17 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | 1cc127b5d1b71453091859301de4a7dd6ee96fa8 (patch) | |
tree | cb1280305a04eb5e6838f91781e668e3bdeed208 /fs/btrfs/volumes.c | |
parent | df5b5520b21d8a2554ede65c09b288833c77144d (diff) | |
download | kernel_samsung_espresso10-1cc127b5d1b71453091859301de4a7dd6ee96fa8.zip kernel_samsung_espresso10-1cc127b5d1b71453091859301de4a7dd6ee96fa8.tar.gz kernel_samsung_espresso10-1cc127b5d1b71453091859301de4a7dd6ee96fa8.tar.bz2 |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c57458c..ba39685 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, spin_unlock(&device->io_lock); if (should_queue) - btrfs_queue_worker(&root->fs_info->workers, &device->work); + btrfs_queue_worker(&root->fs_info->submit_workers, + &device->work); return 0; } |