if: obey CONFIG_MARS_CANNOT_USE_AIO_ANYMORE

This commit is contained in:
Thomas Schoebel-Theuer 2022-10-03 07:06:53 +02:00 committed by Thomas Schoebel-Theuer
parent bbf1255007
commit 84810029d4
1 changed files with 2 additions and 0 deletions

View File

@ -1041,6 +1041,7 @@ void if_unplug(struct request_queue *q)
{ {
struct if_input *input = q->queuedata; struct if_input *input = q->queuedata;
int was_plugged = 1; int was_plugged = 1;
#if !defined(CONFIG_MARS_CANNOT_USE_AIO_ANYMORE)
#if 1 #if 1
spin_lock_irq(q->queue_lock); spin_lock_irq(q->queue_lock);
was_plugged = blk_remove_plug(q); was_plugged = blk_remove_plug(q);
@ -1048,6 +1049,7 @@ void if_unplug(struct request_queue *q)
#else #else
queue_flag_clear_unlocked(QUEUE_FLAG_PLUGGED, q); queue_flag_clear_unlocked(QUEUE_FLAG_PLUGGED, q);
#endif #endif
#endif /* !defined(CONFIG_MARS_CANNOT_USE_AIO_ANYMORE) */
was_plugged += atomic_read(&input->plugged_count); was_plugged += atomic_read(&input->plugged_count);