Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 219d33b2 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

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: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 0b07194b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -517,12 +517,6 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
					 &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();