From: Liu Bo Date: Fri, 1 Sep 2017 22:14:26 +0000 (-0600) Subject: Btrfs: remove batch plug in run_scheduled_IO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=219d33b26ac498ca472a02b9217b4e450474fc90;p=openwrt%2Fstaging%2Fblogic.git Btrfs: remove batch plug in run_scheduled_IO Block layer has a limit on plug, ie. BLK_MAX_REQUEST_COUNT == 16, so we don't gain benefits by batching 64 bios here. Signed-off-by: Liu Bo Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index b39737568c22..b92e82d4413f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -517,12 +517,6 @@ loop_lock: &device->work); goto done; } - /* unplug every 64 requests just for good measure */ - if (batch_run % 64 == 0) { - blk_finish_plug(&plug); - blk_start_plug(&plug); - sync_pending = 0; - } } cond_resched();