public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Josef Bacik <josef@toxicpanda.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: Josef Bacik <josef@toxicpanda.com>,
	Ming Lei <ming.lei@redhat.com>, Josef Bacik <jbacik@fb.com>,
	linux-block <linux-block@vger.kernel.org>
Subject: Re: [Bug] block/for-next: IO hang in rq_qos_throttle
Date: Tue, 31 Jul 2018 12:41:03 -0400	[thread overview]
Message-ID: <20180731164102.kovmreqnymbzy5wb@destiny> (raw)
In-Reply-To: <CACVXFVOuaCT6Q04ztFubLAZUhPPXjpCdDNckoRquN1jvtb8eZw@mail.gmail.com>

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@toxicpanda.com> 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();

      parent reply	other threads:[~2018-07-31 18:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-21 23:22 [Bug] block/for-next: IO hang in rq_qos_throttle Ming Lei
2018-07-22  2:15 ` Josef Bacik
2018-07-22  7:28   ` Ming Lei
2018-07-22 12:24     ` Josef Bacik
2018-07-27 15:47     ` Josef Bacik
2018-07-28 12:11       ` Ming Lei
2018-07-28 15:08         ` Jens Axboe
2018-07-31 16:41         ` Josef Bacik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180731164102.kovmreqnymbzy5wb@destiny \
    --to=josef@toxicpanda.com \
    --cc=jbacik@fb.com \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=tom.leiming@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox