From: Mike Snitzer <snitzer@redhat.com>
To: Bart Van Assche <Bart.VanAssche@wdc.com>
Cc: "axboe@kernel.dk" <axboe@kernel.dk>,
"dm-devel@redhat.com" <dm-devel@redhat.com>,
"loberman@redhat.com" <loberman@redhat.com>,
"ming.lei@redhat.com" <ming.lei@redhat.com>
Subject: Re: dm-rq queue stalls
Date: Wed, 17 Jan 2018 16:37:36 -0500 [thread overview]
Message-ID: <20180117213736.GB6756@redhat.com> (raw)
In-Reply-To: <1516224450.2820.59.camel@wdc.com>
On Wed, Jan 17 2018 at 4:27pm -0500,
Bart Van Assche <Bart.VanAssche@wdc.com> wrote:
> On Wed, 2018-01-17 at 15:14 -0500, Mike Snitzer wrote:
> > BUT my broader point stands: you aren't testing the dm-4.16 changes. By
> > just reverting that commit you're creating a self-fulfilling prophecy
> > (that you'll see hangs without it).
> >
> > Fact is you should pull all of dm-4.16 in, see:
> > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-4.16
> >
> > But these dm-4.16 changes are particularly important:
> > 050af08ffb1b dm mpath: return DM_MAPIO_REQUEUE on blk-mq rq allocation failure
> > 459b54019cfe dm mpath: return DM_MAPIO_DELAY_REQUEUE if QUEUE_IO or PG_INIT_REQUIRED
> > ec3eaf9a6731 dm mpath: don't call blk_mq_delay_run_hw_queue() in case of BLK_STS_RESOURCE
> > 4dd6edd23e7e dm mpath: delay the retry of a request if the target responded as busy
> >
> > This last one is the commit that _should_ serve as a proper replacement
> > for the change you manually reverted in your branch.
> >
> > Please re-test after pulling in dm-4.16 and let us know how things fair.
>
> Hello Mike,
>
> If I replace the patch I referred to in my previous e-mail with your dm-4.16
> branch then I see the following:
> * Without I/O scheduler: dm path removal at the end of the test fails. This
> succeeded reliably in the past so I think this is a regression:
> # srp-test/run_tests -c -d -r 10 -q 1 -t 02-mq
> [ ... ]
> Unmounting /root/mnt1 from /dev/mapper/mpathb
> SRP LUN /sys/class/scsi_device/4:0:0:0 / sdc: removing /dev/dm-1: done
> SRP LUN /sys/class/scsi_device/4:0:0:1 / sde: removing /dev/dm-2: done
> SRP LUN /sys/class/scsi_device/4:0:0:2 / sdd: removing /dev/dm-0: dm=$(dev_to_mpath "/dev/dm-0"): failed
> [ ... ]
So no IO hangs? Just removal of a dm device fails at the end? Anything
in the kernel log that might give a hint as to why? I'll need to
appreciate what the test is doing.
Like why is a single SRP scsi device being used to create a dm device?
What type of DM device?
> * With the Kyber I/O scheduler: I/O hangs.
> # srp-test/run_tests -c -d -r 10 -q 1 -t 02-mq -e kyber
> [ ... ]
> Using /dev/disk/by-id/dm-uuid-mpath-3600140572616d6469736b31000000000 -> ../../dm-0
> (hangs)
Again this says little to me. But hopefully I'll find time to dig in
further and in parallel Laurence will be able to reproduce on his
testbed.
How critical is it to have the latest SCSI changes that are queued for
4.16?
Thanks,
Mike
next prev parent reply other threads:[~2018-01-17 21:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a096db4d-1c32-4682-844d-4a7fc02d47da@email.android.com>
2018-01-17 19:45 ` dm-rq queue stalls Bart Van Assche
2018-01-17 20:14 ` Mike Snitzer
2018-01-17 21:27 ` Bart Van Assche
2018-01-17 21:37 ` Mike Snitzer [this message]
2018-01-17 21:49 ` Bart Van Assche
2018-01-17 18:05 Bart Van Assche
2018-01-17 18:18 ` Mike Snitzer
2018-01-17 18:27 ` Bart Van Assche
2018-01-17 18:29 ` Laurence Oberman
2018-01-17 19:29 ` Bart Van Assche
2018-01-17 19:46 ` Laurence Oberman
2018-01-18 1:53 ` Ming Lei
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=20180117213736.GB6756@redhat.com \
--to=snitzer@redhat.com \
--cc=Bart.VanAssche@wdc.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=loberman@redhat.com \
--cc=ming.lei@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.