Re: [PATCH V2 1/2] block: run queue before waiting for q_usage_counter becoming zero

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

 



On 11/23/2017 02:47 AM, Ming Lei wrote:
Now we track legacy requests with .q_usage_counter in commit 055f6e18e08f
("block: Make q_usage_counter also track legacy requests"), but that
commit never runs legacy queue before waiting for this counter becoming zero,
then IO hang is caused in the test of pulling disk during IO.

This patch fixes the issue by running queue in blk_freeze_queue_start() like
blk-mq before waiting for q_usage_counter becoming zero.

Fixes: 055f6e18e08f("block: Make q_usage_counter also track legacy requests")
Cc: Wen Xiong<wenxiong@xxxxxxxxxx>
Cc: Mauricio Faria de Oliveira<mauricfo@xxxxxxxxxxxxxxxxxx>
Suggested-by: Bart Van Assche<bart.vanassche@xxxxxxx>
Signed-off-by: Ming Lei<ming.lei@xxxxxxxxxx>

Tested-by: Mauricio Faria de Oliveira <mauricfo@xxxxxxxxxxxxxxxxxx>

All disk pull tests completed successfully without I/O hangs (24 disks).


--
Mauricio Faria de Oliveira
IBM Linux Technology Center




[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