From: Chris Mason Date: Tue, 18 Nov 2008 15:31:22 +0000 (-0500) Subject: Btrfs: unplug all devices in the unplug call back X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f0ba5bd91d42706ba78f97ec638c6a821db1c5e;p=linux-beck.git Btrfs: unplug all devices in the unplug call back 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 --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e18250a6fd2d..0e8d31274c92 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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; }