* [PATCH] Allow zero paths for multipath priority groups
@ 2009-07-08 8:45 Nikanth Karthikesan
2009-07-20 20:37 ` Alasdair G Kergon
0 siblings, 1 reply; 5+ messages in thread
From: Nikanth Karthikesan @ 2009-07-08 8:45 UTC (permalink / raw)
To: Alasdair G Kergon; +Cc: device-mapper development
From: Hannes Reinecke <hare@suse.de>
Subject: Allow zero paths for multipath priority groups
For correct handling of the all-paths-down scenario we have to
allow zero paths as a valid argument for priority groups.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nikanth Karthikesan <hare@suse.de>
---
drivers/md/dm-mpath.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6-dm/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6-dm.orig/drivers/md/dm-mpath.c
+++ linux-2.6-dm/drivers/md/dm-mpath.c
@@ -787,8 +787,8 @@ static int multipath_ctr(struct dm_targe
{
/* target parameters */
static struct param _params[] = {
- {1, 1024, "invalid number of priority groups"},
- {1, 1024, "invalid initial priority group number"},
+ {0, 1024, "invalid number of priority groups"},
+ {0, 1024, "invalid initial priority group number"},
};
int r;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow zero paths for multipath priority groups
2009-07-08 8:45 [PATCH] Allow zero paths for multipath priority groups Nikanth Karthikesan
@ 2009-07-20 20:37 ` Alasdair G Kergon
2009-07-21 14:46 ` Hannes Reinecke
0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2009-07-20 20:37 UTC (permalink / raw)
To: Nikanth Karthikesan; +Cc: device-mapper development
On Wed, Jul 08, 2009 at 02:15:39PM +0530, Nikanth Karthikesan wrote:
> From: Hannes Reinecke <hare@suse.de>
> Subject: Allow zero paths for multipath priority groups
>
> For correct handling of the all-paths-down scenario we have to
> allow zero paths as a valid argument for priority groups.
That seems counter-intuitive.
Can you be more specific, with example scenarios?
Alasdair
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow zero paths for multipath priority groups
2009-07-20 20:37 ` Alasdair G Kergon
@ 2009-07-21 14:46 ` Hannes Reinecke
2009-07-21 14:55 ` Alasdair G Kergon
0 siblings, 1 reply; 5+ messages in thread
From: Hannes Reinecke @ 2009-07-21 14:46 UTC (permalink / raw)
To: device-mapper development; +Cc: Nikanth Karthikesan
Alasdair G Kergon wrote:
> On Wed, Jul 08, 2009 at 02:15:39PM +0530, Nikanth Karthikesan wrote:
>> From: Hannes Reinecke <hare@suse.de>
>> Subject: Allow zero paths for multipath priority groups
>>
>> For correct handling of the all-paths-down scenario we have to
>> allow zero paths as a valid argument for priority groups.
>
> That seems counter-intuitive.
> Can you be more specific, with example scenarios?
>
Currently we're not allowing the last path to be removed
from a multipath target. With earlier kernel revisions
this wasn't a problem as dev_loss_tmo didn't work correctly
and so in effect no devices were ever removed from the system.
However, with newer kernels dev_loss_tmo works correctly, so
any dead path will be removed from the system.
So when the last path goes down, we're having a stale reference
to an sdev which for all intents and purposes should have been
removed.
And even worse, when this path comes back the SCSI subsystem
isn't even able to assign it to the old device number, as this
is already taken.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow zero paths for multipath priority groups
2009-07-21 14:46 ` Hannes Reinecke
@ 2009-07-21 14:55 ` Alasdair G Kergon
2009-07-22 6:08 ` Hannes Reinecke
0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2009-07-21 14:55 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: Nikanth Karthikesan, device-mapper development
Then effectively the multipath target with no paths turns into a pure
queueing target. I'll have a think about the options, but that's probably
quite a reasonable idea.
Alasdair
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Allow zero paths for multipath priority groups
2009-07-21 14:55 ` Alasdair G Kergon
@ 2009-07-22 6:08 ` Hannes Reinecke
0 siblings, 0 replies; 5+ messages in thread
From: Hannes Reinecke @ 2009-07-22 6:08 UTC (permalink / raw)
To: Hannes Reinecke, device-mapper development, Nikanth Karthikesan
Alasdair G Kergon wrote:
> Then effectively the multipath target with no paths turns into a pure
> queueing target. I'll have a think about the options, but that's probably
> quite a reasonable idea.
>
Quite so.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-22 6:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 8:45 [PATCH] Allow zero paths for multipath priority groups Nikanth Karthikesan
2009-07-20 20:37 ` Alasdair G Kergon
2009-07-21 14:46 ` Hannes Reinecke
2009-07-21 14:55 ` Alasdair G Kergon
2009-07-22 6:08 ` Hannes Reinecke
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.