Btrfs: remove batch plug in run_scheduled_IO
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 1 Sep 2017 22:14:26 +0000 (16:14 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:55 +0000 (12:27 +0100)
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 <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index b39737568c223c208d92b2f4ab73ac0263ad3ff4..b92e82d4413f2a2ac568000ed7aa0f3cc4bec286 100644 (file)
@@ -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();