Re: [Bug] block/for-next: IO hang in rq_qos_throttle

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

 



On Sat, Jul 28, 2018 at 08:11:33PM +0800, Ming Lei wrote:
> On Fri, Jul 27, 2018 at 11:47 PM, Josef Bacik <josef@xxxxxxxxxxxxxx> wrote:
> > On Sun, Jul 22, 2018 at 03:28:05PM +0800, Ming Lei wrote:
> >> On Sun, Jul 22, 2018 at 02:15:38AM +0000, Josef Bacik wrote:
> >> > Yup I sent a patch for this on Thursday, sorry about that,
> >> >
> >>
> >> I just applied the patch of 'blk-rq-qos: make depth comparisons unsigned',
> >> looks the same IO hang can be triggered too.
> >
> > Ok I'm back from vacation and I'm trying to reproduce but it's not happening for
> > me.  What testing infrastructure is this?  blktests and xfstests don't have a
> > sanity/ in their test suites.  I'm wondering if there's something else about the
> > test that I'm missing.  Thanks,
> 
> As I mentioned,
> 
> The following IO hang is triggered on dbench test on xfs/usb-storage:
> 
>       dbench -t 20 -s 64
> 

Yup I just wasnt sure if there was something else about the test that was making
things different between our two setups.  I cannot reproduce with any variation.
I've tried longer dbench runs, I've put dm-delay in front of my usb stick to
artificially increase the io latency, nothing seems to trigger it for me.  Could
you run this debug patch and give me the output?  Thanks,

Josef


diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index 461a9af11efe..36950ba5288d 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -520,6 +520,8 @@ static void __wbt_wait(struct rq_wb *rwb, enum wbt_flags wb_acct,
 		if (may_queue(rwb, rqw, &wait, rw))
 			break;
 
+		printk(KERN_ERR "queueing, inflight %d, limit %u\n",
+		       atomic_read(&rqw->inflight), get_limit(rwb, rw));
 		if (lock) {
 			spin_unlock_irq(lock);
 			io_schedule();



[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