From fb33f7405c5c0da4b0660ad137d2bb81df7cfd4f Mon Sep 17 00:00:00 2001 From: Markeryang <747675909@qq.com> Date: Wed, 29 Jul 2020 17:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=206000-isc?= =?UTF-8?q?si-perf-fix-overflow-issue-in-fill=5Fread=5Fqueue.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ix-overflow-issue-in-fill_read_queue.patch | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 6000-iscsi-perf-fix-overflow-issue-in-fill_read_queue.patch diff --git a/6000-iscsi-perf-fix-overflow-issue-in-fill_read_queue.patch b/6000-iscsi-perf-fix-overflow-issue-in-fill_read_queue.patch deleted file mode 100644 index 316c758..0000000 --- a/6000-iscsi-perf-fix-overflow-issue-in-fill_read_queue.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 63cfcd3384f6ab35a7d1f3d82dd824fb1872d657 Mon Sep 17 00:00:00 2001 -From: optimistyzy -Date: Mon, 9 Jan 2017 18:34:12 +0800 -Subject: [PATCH 035/110] iscsi-perf: fix overflow issue in fill_read_queue - -If with int defintion, this statement: - -num_blocks = client->num_blocks - client->pos; - -May not get the exact value we want. - -Signed-off-by: optimistyzy ---- - utils/iscsi-perf.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/utils/iscsi-perf.c b/utils/iscsi-perf.c -index 14c3f49..7e0f145 100644 ---- a/utils/iscsi-perf.c -+++ b/utils/iscsi-perf.c -@@ -186,7 +186,7 @@ out: - - void fill_read_queue(struct client *client) - { -- int num_blocks; -+ int64_t num_blocks; - - if (finished) return; - -@@ -210,7 +210,7 @@ void fill_read_queue(struct client *client) - - task = iscsi_read16_task(client->iscsi, - client->lun, client->pos, -- num_blocks * client->blocksize, -+ (uint32_t)(num_blocks * client->blocksize), - client->blocksize, 0, 0, 0, 0, 0, - cb, client); - if (task == NULL) { --- -1.8.3.1 -