[PATCH 5/8] ataflop: Remove the quiesce/unquiesce calls on frozen queues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Because blk_mq_hw_queue_need_run() now returns false if a queue is frozen,
protecting request queue changes with blk_mq_quiesce_queue() and
blk_mq_unquiesce_queue() while a queue is frozen is no longer necessary.
Hence this patch that removes quiesce/unquiesce calls on frozen queues.

Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
 drivers/block/ataflop.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c
index 7fe14266c12c..0475f3bc6fbd 100644
--- a/drivers/block/ataflop.c
+++ b/drivers/block/ataflop.c
@@ -760,7 +760,6 @@ static int do_format(int drive, int type, struct atari_format_descr *desc)
 
 	q = unit[drive].disk[type]->queue;
 	memflags = blk_mq_freeze_queue(q);
-	blk_mq_quiesce_queue(q);
 
 	local_irq_save(flags);
 	stdma_lock(floppy_irq, NULL);
@@ -817,7 +816,6 @@ static int do_format(int drive, int type, struct atari_format_descr *desc)
 	finish_fdc();
 	ret = FormatError ? -EIO : 0;
 out:
-	blk_mq_unquiesce_queue(q);
 	blk_mq_unfreeze_queue(q, memflags);
 	return ret;
 }




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux