All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Junichi Nomura <j-nomura@ce.jp.nec.com>
Cc: Steffen Maier <maier@linux.vnet.ibm.com>,
	device-mapper development <dm-devel@redhat.com>,
	Frank Mayhar <fmayhar@google.com>,
	Mike Snitzer <snitzer@redhat.com>,
	Alasdair Kergon <agk@redhat.com>
Subject: Re: [PATCH] dm-mpath: push back requests instead of queueing
Date: Tue, 12 Nov 2013 11:17:43 +0100	[thread overview]
Message-ID: <52820047.9090103@suse.de> (raw)
In-Reply-To: <11AF7C027C4C02408624617A49860784F0AE9C@BPXM12GP.gisp.nec.co.jp>

On 11/12/2013 11:00 AM, Junichi Nomura wrote:
> On 11/12/13 18:05, Hannes Reinecke wrote:
[ .. ]
>> We _could_ optimize this in __switch_pg(), to call pgpath_busy()
>> when selecting the paths. But that should be done by the path selector.
>> So for that we would need to separate the functionality of the
>> path selector and __switch_pg; currently it's unclear whether
>> we need to call pgpath_busy() in __switch_pg or not.
> 
> There is no need to call pgpath_busy in __switch_pg.
> 
> If we call __pgpath_busy() in map function, I think it's here:
> 
> 	if (pgpath) {
> + 		if (__pgpath_busy(pgpath))
> + 			r = DM_MAPIO_REQUEUE;
> 		else if (pg_ready(m)) {
> 			... // remap
> 			r = DM_MAPIO_REMAPPED;
> 		} else {
> 			__pg_init_all_paths(m);
> 			r = DM_MAPIO_REQUEUE;
> 		}
> 	...
> 
Which is what I had in mind.

> or in a path selector.
> 
Hmm. The path selector might have a reason for selecting this
particular path. So I'd prefer not to have it in there.

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)

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

  reply	other threads:[~2013-11-12 10:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08  9:02 [PATCH] dm-mpath: push back requests instead of queueing Hannes Reinecke
2013-11-12  7:48 ` Junichi Nomura
2013-11-12  8:17   ` Hannes Reinecke
2013-11-12  8:43     ` Junichi Nomura
2013-11-12  9:05       ` Hannes Reinecke
2013-11-12 10:00         ` Junichi Nomura
2013-11-12 10:17           ` Hannes Reinecke [this message]
2013-11-12 10:25             ` Junichi Nomura
2013-11-12  8:49     ` Hannes Reinecke
2013-11-12 10:09       ` Junichi Nomura

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=52820047.9090103@suse.de \
    --to=hare@suse.de \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=fmayhar@google.com \
    --cc=j-nomura@ce.jp.nec.com \
    --cc=maier@linux.vnet.ibm.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.