[Devel] [PATCH rh7 1/4] ploop: Simplify check in ploop_fast_end_io()

Kirill Tkhai ktkhai at virtuozzo.com
Thu Mar 5 15:46:30 MSK 2020


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

diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index 25150fb0467b..67cc9e46c4cb 100644
--- a/drivers/block/ploop/dev.c
+++ b/drivers/block/ploop/dev.c
@@ -672,8 +672,8 @@ DEFINE_BIO_CB(ploop_fast_end_io)
 	    (test_bit(PLOOP_S_EXITING, &plo->state) ||
 	     !list_empty(&plo->entry_queue)))
 		wake_up_interruptible(&plo->waitq);
-	if ((plo->fast_path_disabled_count || plo->bio_discard_inflight_reqs) &&
-	    !plo->fastpath_reqs)
+	if (!plo->fastpath_reqs &&
+	    waitqueue_active(&plo->fast_path_waitq))
 		wake_up(&plo->fast_path_waitq);
 	spin_unlock_irqrestore(&plo->lock, flags);
 




More information about the Devel mailing list