From: Hannes Reinecke <hare@suse.de>
To: Mike Snitzer <snitzer@redhat.com>
Cc: Junichi Nomura <j-nomura@ce.jp.nec.com>,
"dm-devel@redhat.com" <dm-devel@redhat.com>,
Alasdair Kergon <agk@redhat.com>
Subject: Re: [PATCH 8/8] dm-mpath: do not activate failed paths
Date: Fri, 28 Feb 2014 16:08:43 +0100 [thread overview]
Message-ID: <5310A67B.2070606@suse.de> (raw)
In-Reply-To: <20140228150243.GB1140@redhat.com>
On 02/28/2014 04:02 PM, Mike Snitzer wrote:
> On Fri, Feb 28 2014 at 9:44am -0500,
> Hannes Reinecke <hare@suse.de> wrote:
>
>> On 02/28/2014 03:22 PM, Mike Snitzer wrote:
>> [ .. ]
>>>
>>> FYI, I still intend to review/take your "accept failed paths" patch.
>>> Would be helpful if any rebase is needed for that patch that you do so
>>> and re-post.
>>>
>>> One thing I noticed is you're only converting MAJ:MIN paths to devices.
>>> I think we should factor a helper out of DM core that does the full path
>>> lookup check from dm_get_device() -- rather than you open coding an
>>> older version of the MAJ:MIN device path processing.
>>>
>>> But is there a reason for not using lookup_bdev()? Because the device
>>> is failed it cannot be found using lookup_bdev()?
>>>
>> Yes, that's precisely it.
>> When setting dev_loss_tmo very aggressively (to, say, 10 or even 5
>> seconds) it might well be that multipathd won't be able to keep up
>> with the events in time.
>> So by the time multipathd tries to push a new table into the kernel
>> (which contains major:minor numbers only) those devices are already
>> gone. So lookup_bdev() won't be able to find them, either.
>
> Been talking this over with Alasdair. Need some things clarified.
>
> Are you needing to handle non-existent devices during initial mpath
> table load?
>
> Or is the failed path in question already part of the active mpath table
> -- so active table currently holds a reference to the device?
>
> Or do you need to support both cases? Sounds like you want to support
> both cases..
>
Hmm. I wouldn't think I'd need it during initial mpath table load;
but then you never now, devices might fail faster than you'd think ...
So yeah, I'd need to support both cases.
The main reason why I've sent this patch is to get rid of these
_really_ annoying messages 'error getting device' during failover.
We really should and can do better than that.
That this patch allows to drop references to failed devices earlier
is a nice side effect :-)
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2014-02-28 15:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 7:30 [PATCHv8 0/8] dm-multipath: push back requests instead of queueing Hannes Reinecke
2014-02-27 7:30 ` [PATCH 1/8] dm mpath: do not call pg_init when it is already running Hannes Reinecke
2014-02-27 7:30 ` [PATCH 2/8] dm table: add dm_table_run_md_queue_async Hannes Reinecke
2014-02-27 7:30 ` [PATCH 3/8] dm mpath: push back requests instead of queueing Hannes Reinecke
2014-02-27 7:30 ` [PATCH 4/8] dm mpath: remove process_queued_ios() Hannes Reinecke
2014-02-28 9:05 ` Junichi Nomura
2014-02-28 9:37 ` Hannes Reinecke
2014-02-27 7:30 ` [PATCH 5/8] dm mpath: reduce memory pressure when requeuing Hannes Reinecke
2014-02-27 7:30 ` [PATCH 6/8] dm mpath: remove map_io() Hannes Reinecke
2014-02-28 9:06 ` Junichi Nomura
2014-02-27 7:30 ` [PATCH 7/8] dm mpath: remove extra nesting in map function Hannes Reinecke
2014-02-27 7:30 ` [PATCH 8/8] dm-mpath: do not activate failed paths Hannes Reinecke
2014-02-28 8:49 ` Junichi Nomura
2014-02-28 9:32 ` Hannes Reinecke
2014-02-28 9:37 ` Junichi Nomura
2014-02-28 9:52 ` Hannes Reinecke
2014-02-28 10:08 ` Junichi Nomura
2014-02-28 14:22 ` Mike Snitzer
2014-02-28 14:44 ` Hannes Reinecke
2014-02-28 15:02 ` Mike Snitzer
2014-02-28 15:08 ` Hannes Reinecke [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-02-28 14:33 [PATCHv9 0/8] dm-multipath: push back requests instead of queueing Hannes Reinecke
2014-02-28 14:33 ` [PATCH 8/8] dm-mpath: do not activate failed paths Hannes Reinecke
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=5310A67B.2070606@suse.de \
--to=hare@suse.de \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=j-nomura@ce.jp.nec.com \
--cc=snitzer@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.