From a37999b44b830f981c84ff81379d7ae9698a8a21 Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Mon, 15 Apr 2019 12:28:41 +0200 Subject: [PATCH] lib/ftl: clear flush bitmap during IO completion Change-Id: I073af62b0af58d2e63bc5d8df8d13fd8ecf94ec9 Signed-off-by: Konrad Sztyber Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451155 Tested-by: SPDK CI Jenkins Reviewed-by: Wojciech Malikowski Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/ftl/ftl_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftl/ftl_core.c b/lib/ftl/ftl_core.c index c5ced9e6b..e1bdea73c 100644 --- a/lib/ftl/ftl_core.c +++ b/lib/ftl/ftl_core.c @@ -846,7 +846,7 @@ ftl_process_flush(struct spdk_ftl_dev *dev, struct ftl_rwb_batch *batch) offset = ftl_rwb_batch_get_offset(batch); if (spdk_bit_array_get(flush->bmap, offset)) { - spdk_bit_array_set(flush->bmap, offset); + spdk_bit_array_clear(flush->bmap, offset); if (!(--flush->num_req)) { ftl_complete_flush(flush); }