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

Submitted by Kirill Tkhai on Sept. 19, 2020, 4:51 p.m.

Details

Message ID 160053428359.24001.17114557372123533320.stgit@qvm3002.qa.sw.ru
State New
Series "Series without cover letter"
Headers show

Commit Message

Kirill Tkhai Sept. 19, 2020, 4:51 p.m.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 drivers/block/ploop/io_kaio.c |    5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

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;