Btrfs: Add a thread pool just for submit_bio
authorChris Mason <chris.mason@oracle.com>
Thu, 12 Jun 2008 18:46:17 +0000 (14:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000 (11:04 -0400)
commit1cc127b5d1b71453091859301de4a7dd6ee96fa8
treecb1280305a04eb5e6838f91781e668e3bdeed208
parentdf5b5520b21d8a2554ede65c09b288833c77144d
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>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/volumes.c