]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Btrfs: fix multi-device code to use raid policies set by mkfs
authorChris Mason <chris.mason@oracle.com>
Tue, 30 Sep 2008 23:24:06 +0000 (19:24 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 30 Sep 2008 23:36:34 +0000 (19:36 -0400)
commit75ccf47d13bfb66de7faf596bfe497b9af7aaa40
treee1b06bc9afec8f6b48cc2fb00c5e1e4d4dda2e0b
parent45b8c9a8b1e15bf79c2c17ec217adf96785f8011
Btrfs: fix multi-device code to use raid policies set by mkfs

When reading in block groups, a global mask of the available raid policies
should be adjusted based on the types of block groups found on disk.  This
global mask is then used to decide which raid policy to use for new
block groups.

The recent allocator changes dropped the call that updated the global
mask, making all the block groups allocated at run time single striped
onto a single drive.

This also fixes the async worker threads to set any thread that uses
the requeue mechanism as busy.  This allows us to avoid blocking
on get_request_wait for the async bio submission threads.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/async-thread.c
fs/btrfs/extent-tree.c