From 84810029d417275c32ae1290abf91446888fbbb6 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Mon, 3 Oct 2022 07:06:53 +0200 Subject: [PATCH] if: obey CONFIG_MARS_CANNOT_USE_AIO_ANYMORE --- kernel/mars_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/mars_if.c b/kernel/mars_if.c index 823c1727..a413e24b 100644 --- a/kernel/mars_if.c +++ b/kernel/mars_if.c @@ -1041,6 +1041,7 @@ void if_unplug(struct request_queue *q) { struct if_input *input = q->queuedata; int was_plugged = 1; +#if !defined(CONFIG_MARS_CANNOT_USE_AIO_ANYMORE) #if 1 spin_lock_irq(q->queue_lock); was_plugged = blk_remove_plug(q); @@ -1048,6 +1049,7 @@ void if_unplug(struct request_queue *q) #else queue_flag_clear_unlocked(QUEUE_FLAG_PLUGGED, q); #endif +#endif /* !defined(CONFIG_MARS_CANNOT_USE_AIO_ANYMORE) */ was_plugged += atomic_read(&input->plugged_count);