mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* unique entry points for all driver hosts
@ 2003-05-12 22:41 Mukker, Atul
  2003-05-12 23:38 ` Mike Anderson
  2003-05-13  5:37 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Mukker, Atul @ 2003-05-12 22:41 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-kernel, Mukker, Atul

Why doesn't mid-layer allow LLDs to specify separate entry points to various
hosts attached to the same driver. Like some other entries in the Scsi Host
Template, entry points should also  allowed to be overridden.


Thanks

-Atul Mukker
Storage Systems
LSI Logic Corporation

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: unique entry points for all driver hosts
@ 2003-05-13 13:43 Mukker, Atul
  2003-05-13 15:09 ` 'Christoph Hellwig'
  0 siblings, 1 reply; 5+ messages in thread
From: Mukker, Atul @ 2003-05-13 13:43 UTC (permalink / raw)
  To: 'Mike Anderson', 'Christoph Hellwig'
  Cc: linux-scsi, linux-kernel

> > Why doesn't mid-layer allow LLDs to specify separate entry 
> > points to various
> > hosts attached to the same driver. Like some other entries 
> > in the Scsi Host
> > Template, entry points should also  allowed to be overridden.
> 
> Is there a issue you are hitting of common host template functions and
> selecting unique host instance functions using hostdata?

No, We simply want to have unique hot-path entry point (queuecommand) and
error handling hooks for each class of supported hosts. This is required
because these classes of controllers have disparate queue and error handling
mechanisms.

The work around we have today is to have common queue routine for example.
This queue routine then routes the scsi packet to appropriate host's
queuecommand hook using hostdata information.

looks like it is limiting to have a 'driver' specific structure(SHT) instead
of a self sufficient host-centric view (struct Scsi_Host).

IMHO, declaring multiple SHTs as suggested by Christoph Hellwig may not be a
good idea since it might appear like a hack, would lose the "template"
ideology and is not object-oriented :-)

Host structure would be best place to have pointers to these hooks as well.

-Atul Mukker


> -----Original Message-----
> From: Mike Anderson [mailto:andmike@us.ibm.com]
> Sent: Monday, May 12, 2003 7:38 PM
> To: Mukker, Atul
> Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: unique entry points for all driver hosts
> 
> 
> Mukker, Atul [atulm@lsil.com] wrote:
> > Why doesn't mid-layer allow LLDs to specify separate entry 
> points to various
> > hosts attached to the same driver. Like some other entries 
> in the Scsi Host
> > Template, entry points should also  allowed to be overridden.
> > 
> > 
> > Thanks
> 
> Is there a issue you are hitting of common host template functions and
> selecting unique host instance functions using hostdata?
> 
> -andmike
> --
> Michael Anderson
> andmike@us.ibm.com
> 

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

end of thread, other threads:[~2003-05-13 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 22:41 unique entry points for all driver hosts Mukker, Atul
2003-05-12 23:38 ` Mike Anderson
2003-05-13  5:37 ` Christoph Hellwig
2003-05-13 13:43 Mukker, Atul
2003-05-13 15:09 ` 'Christoph Hellwig'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®