From: Mike Snitzer <snitzer@redhat.com>
To: Martin Wilck <mwilck@suse.com>
Cc: dm-devel@redhat.com, hch@lst.de
Subject: Re: [dm-devel] dm: avoid filesystem lookup in dm_get_dev_t()
Date: Thu, 21 Jan 2021 11:09:33 -0500 [thread overview]
Message-ID: <20210121160933.GA4104@redhat.com> (raw)
In-Reply-To: <e8d2e33fd4cb6ecb8c727b3c3c4c5e4c9e260c33.camel@suse.com>
On Thu, Jan 21 2021 at 10:02am -0500,
Martin Wilck <mwilck@suse.com> wrote:
> On Thu, 2020-12-10 at 18:11 +0100, Martin Wilck wrote:
> > On Thu, 2020-12-10 at 10:24 +0100, Hannes Reinecke wrote:
> > > dm_get_dev_t() is just used to convert an arbitrary 'path' string
> > > into a dev_t. It doesn't presume that the device is present; that
> > > check will be done later, as the only caller is dm_get_device(),
> > > which does a dm_get_table_device() later on, which will properly
> > > open the device.
> > > So if the path string already _is_ in major:minor representation
> > > we can convert it directly, avoiding a recursion into the
> > > filesystem
> > > to lookup the block device.
> > > This avoids a hang in multipath_message() when the filesystem is
> > > inaccessible.
> > >
> > > Signed-off-by: Hannes Reinecke <hare@suse.de>
> >
> > Ack, although I believe the scsi/__GENKSYMS__ part doesn't belong
> > here.
> >
> > Note that this is essentially a revert/fix of 644bda6f3460 ("dm
> > table:
> > fall back to getting device using name_to_dev_t()"). Added the author
> > of that patch to CC.
>
> Mike, do you need anything more to apply this one? Do you want a
> cleaned-up resend?
It got hung up with Christoph correctly requesting more discussion, last
linux-block/lkml mail on the associated thread I kicked off is here:
https://lkml.org/lkml/2020/12/23/76
Basically if Hannes or yourself would like to review that thread and
send a relevant v2 it'd really help move this forward. I'm bogged down
with too many competing tasks. You guys may be able to act on this line
of development/fixing quicker than I'll get to it.
Thanks,
Mike
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
next prev parent reply other threads:[~2021-01-21 16:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 9:24 [dm-devel] [PATCH] dm: avoid filesystem lookup in dm_get_dev_t() Hannes Reinecke
2020-12-10 17:11 ` Martin Wilck
2021-01-21 15:02 ` Martin Wilck
2021-01-21 16:09 ` Mike Snitzer [this message]
2021-01-21 17:03 ` [dm-devel] " Christoph Hellwig
2021-01-21 17:41 ` Martin Wilck
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=20210121160933.GA4104@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=hch@lst.de \
--cc=mwilck@suse.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.