From: Mike Snitzer <snitzer@redhat.com>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: Paul Mackerras <paulus@ozlabs.org>,
dm-devel@redhat.com, linux-scsi@vger.kernel.org
Subject: Re: Recent kernels fail to boot on POWER8 with multipath SCSI
Date: Fri, 30 Mar 2018 07:49:27 -0400 [thread overview]
Message-ID: <20180330114926.GA7000@redhat.com> (raw)
In-Reply-To: <87fu4iylwj.fsf@concordia.ellerman.id.au>
On Fri, Mar 30 2018 at 5:04P -0400,
Michael Ellerman <michael@ellerman.id.au> wrote:
> Hi Mike,
>
> Paul's AFK so I tried the patch you sent.
>
> Mike Snitzer <snitzer@redhat.com> writes:
> > On Thu, Mar 29 2018 at 4:39am -0400,
> > Paul Mackerras <paulus@ozlabs.org> wrote:
> >> Since commit 8d47e65948dd ("dm mpath: remove unnecessary NVMe
> >> branching in favor of scsi_dh checks", 2018-03-05), upstream kernels
> >> fail to boot on my POWER8 box which has multipath SCSI disks. The
> >> host adapters are IPR and the userspace is CentOS 7.
> ...
> >
> > Please try this patch, it'll likely fix your issues:
> >
> > diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
> > index dbddcdc5a4ec..746dd8a75b4a 100644
> > --- a/drivers/md/dm-mpath.c
> > +++ b/drivers/md/dm-mpath.c
> > @@ -887,7 +887,7 @@ static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *ps
> >
> > q = bdev_get_queue(p->path.dev->bdev);
> > attached_handler_name = scsi_dh_attached_handler_name(q, GFP_KERNEL);
> > - if (attached_handler_name) {
> > + if (attached_handler_name || m->hw_handler_name) {
> > INIT_DELAYED_WORK(&p->activate_path, activate_path_work);
> > r = setup_scsi_dh(p->path.dev->bdev, m, attached_handler_name, &ti->error);
> > if (r) {
>
> And it does indeed fix the problem. The system boots happily with no warnings.
Great, thanks for verifying.
> If you like here's a:
>
> Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Already sent to Linus and included.
> Any prospect of getting that patch to Linus before the 4.16 release? Yes
> I realise that's in ~36 hours :)
Please, see upstream commit e457edf0b21c873be827b7c2f6b8e1545485c415
Thanks,
Mike
next prev parent reply other threads:[~2018-03-30 11:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180329083909.GA15766@fergus.ozlabs.ibm.com>
2018-03-29 15:16 ` Recent kernels fail to boot on POWER8 with multipath SCSI Mike Snitzer
2018-03-30 9:04 ` Michael Ellerman
2018-03-30 11:49 ` Mike Snitzer [this message]
2018-04-01 9:54 ` Michael Ellerman
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=20180330114926.GA7000@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michael@ellerman.id.au \
--cc=paulus@ozlabs.org \
/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.