All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 3/3] multipath: implement controller framework for hardware handlers (fwd)
       [not found] <alpine.LFD.0.9999.0711190838370.3253@localhost.localdomain>
@ 2007-11-19 13:41 ` Chip Coldwell
  2007-11-19 14:00   ` Hannes Reinecke
  0 siblings, 1 reply; 2+ messages in thread
From: Chip Coldwell @ 2007-11-19 13:41 UTC (permalink / raw)
  To: dm-devel

From: Hannes Reinecke <hare@suse.de>
diff --git a/drivers/md/dm-hw-handler.h b/drivers/md/dm-hw-handler.h
> index 9216682..6f91b55 100644
> --- a/drivers/md/dm-hw-handler.h
> +++ b/drivers/md/dm-hw-handler.h
> @@ -15,10 +15,31 @@
>  
>  struct hw_handler_type;
>  
> +#define CTLR_ID_LEN 256
> +
> +struct hw_controller {
> +	struct list_head node;
> +	struct hw_controller_type *type;
> +	unsigned char ctlr_id[CTLR_ID_LEN];
> +	struct kref kref;
> +	spinlock_t lock;
> +	struct list_head cmd_list;
> +	int submitted;
> +	void *context;
> +};
> +
> +struct hw_controller_type {
> +	char *name;
> +
> +	int (*create) (struct hw_controller *ctlr);
> +	void (*destroy) (struct hw_controller *ctlr);
> +};
> +

Would it make sense to make hw_controller_type a kobj_type?  That way,
the controller topology could be reflected in sysfs, where it can be
reached by tools such as lsscsi.

Chip

-- 
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/3] multipath: implement controller framework for hardware handlers (fwd)
  2007-11-19 13:41 ` [PATCH 3/3] multipath: implement controller framework for hardware handlers (fwd) Chip Coldwell
@ 2007-11-19 14:00   ` Hannes Reinecke
  0 siblings, 0 replies; 2+ messages in thread
From: Hannes Reinecke @ 2007-11-19 14:00 UTC (permalink / raw)
  To: device-mapper development

Chip Coldwell wrote:
> From: Hannes Reinecke <hare@suse.de>
> diff --git a/drivers/md/dm-hw-handler.h b/drivers/md/dm-hw-handler.h
>> index 9216682..6f91b55 100644
>> --- a/drivers/md/dm-hw-handler.h
>> +++ b/drivers/md/dm-hw-handler.h
>> @@ -15,10 +15,31 @@
>>  
>>  struct hw_handler_type;
>>  
>> +#define CTLR_ID_LEN 256
>> +
>> +struct hw_controller {
>> +	struct list_head node;
>> +	struct hw_controller_type *type;
>> +	unsigned char ctlr_id[CTLR_ID_LEN];
>> +	struct kref kref;
>> +	spinlock_t lock;
>> +	struct list_head cmd_list;
>> +	int submitted;
>> +	void *context;
>> +};
>> +
>> +struct hw_controller_type {
>> +	char *name;
>> +
>> +	int (*create) (struct hw_controller *ctlr);
>> +	void (*destroy) (struct hw_controller *ctlr);
>> +};
>> +
> 
> Would it make sense to make hw_controller_type a kobj_type?  That way,
> the controller topology could be reflected in sysfs, where it can be
> reached by tools such as lsscsi.
> 
Eventually, maybe.

Plan is to add userland support to manually declare and assign
controller to each priority group.
But I haven't really sorted out the details there (how to pass
information etc) and I really would like to have the basic
infrastructure agreed upon first.
And implementing a kobj_type at this point would be a bit
over the top as we are in the very preliminary stages here.

Once the controller framework is accepted we can think about it.

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] 2+ messages in thread

end of thread, other threads:[~2007-11-19 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <alpine.LFD.0.9999.0711190838370.3253@localhost.localdomain>
2007-11-19 13:41 ` [PATCH 3/3] multipath: implement controller framework for hardware handlers (fwd) Chip Coldwell
2007-11-19 14:00   ` 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.