mirror of https://github.com/schoebel/mars
if: obey CONFIG_MARS_CANNOT_USE_AIO_ANYMORE
This commit is contained in:
parent
bbf1255007
commit
84810029d4
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue