]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: unplug all devices in the unplug call back
authorChris Mason <chris.mason@oracle.com>
Tue, 18 Nov 2008 15:31:22 +0000 (10:31 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 18 Nov 2008 15:31:22 +0000 (10:31 -0500)
For larger multi-device filesystems, there was logic to limit the
number of devices unplugged to just the page that was sent to our sync_page
function.

But, the code wasn't always unplugging the right device.  Since this was
just an optimization, disable it for now.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c

index e18250a6fd2db6009d07eadd339fcc3e3e09fc15..0e8d31274c92733af7ea1de54fb61bdcb0bf888c 100644 (file)
@@ -1214,7 +1214,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
        u64 offset;
 
        /* the generic O_DIRECT read code does this */
-       if (!page) {
+       if (1 || !page) {
                __unplug_io_fn(bdi, page);
                return;
        }