Thread (8 messages) 8 messages, 5 authors, 2018-07-31

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

From: Josef Bacik <josef@toxicpanda.com>
Date: 2018-07-31 18:22:13
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

On Sat, Jul 28, 2018 at 08:11:33PM +0800, Ming Lei wrote:
On Fri, Jul 27, 2018 at 11:47 PM, Josef Bacik [off-list ref] wrote:
quoted
On Sun, Jul 22, 2018 at 03:28:05PM +0800, Ming Lei wrote:
quoted
On Sun, Jul 22, 2018 at 02:15:38AM +0000, Josef Bacik wrote:
quoted
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();
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help