[Devel] [PATCH RH7 3/4] ploop: Add comments about fsync_thread

Kirill Tkhai ktkhai at virtuozzo.com
Sat Sep 19 19:51:29 MSK 2020


Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/block/ploop/io_kaio.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/ploop/io_kaio.c
index 19d9b0a..3af9eba 100644
--- a/drivers/block/ploop/io_kaio.c
+++ b/drivers/block/ploop/io_kaio.c
@@ -546,6 +546,11 @@ static int kaio_fsync_thread(void * data)
 			} else if (preq->req_rw & REQ_FLUSH) {
 				BUG_ON(!preq->req_size);
 				preq->req_rw &= ~REQ_FLUSH;
+				/*
+				 * FIXME: We submit some data and main thread
+				 * is not synchronized with this? Also,
+				 * TODO: fsync_thread must care of ploop_quiesce().
+				 */
 				if (kaio_resubmit(preq)) {
 					spin_lock_irq(&plo->lock);
 					continue;



More information about the Devel mailing list