From 962b15d0c4f751cf6d14013667d5680ddf98bdbd Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Sun, 24 Jun 2018 21:45:10 +0200 Subject: [PATCH] ioat: split FILL tasks on hugepage boundary This was obviously omitted in the original implementation. Change-Id: Ifba049cdb8d1c1f24e30adb542946a2fa83c7464 Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/416655 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Daniel Verkamp Reviewed-by: Shuhei Matsumoto --- lib/ioat/ioat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ioat/ioat.c b/lib/ioat/ioat.c index 065d14275..ef7c215a6 100644 --- a/lib/ioat/ioat.c +++ b/lib/ioat/ioat.c @@ -673,6 +673,7 @@ spdk_ioat_submit_fill(struct spdk_ioat_chan *ioat, void *cb_arg, spdk_ioat_req_c while (remaining) { op_size = remaining; + op_size = spdk_min(op_size, (0x200000 - _2MB_OFFSET(vdst))); op_size = spdk_min(op_size, ioat->max_xfer_size); remaining -= op_size;