Re: [PATCH] minimal SAS transport class

2005-08-22 Thread Hannes Reinecke
[EMAIL PROTECTED] wrote: > - There are some real challenges in supporting a udev-named boot > device. For the most part, it's a distro issue, which is becoming > better. PS: for $10, name a 2.6 distro that uses udev out > of the box for disk names and its installation. For $10 more, > can

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 09:03:03PM -0500, James Bottomley wrote: > On Mon, 2005-08-22 at 17:39 -0700, Patrick Mansfield wrote: > > But, we have to pass in a struct kref, to affect put/get_device, correct? > > Correct. Let me post the code mods to drivers/base/core.c so you can > see how it works.

sym53c8xx: sym_prepare_nego(): conditions too broad for PPR negotation?

2005-08-22 Thread Edward A. Hildum
In sym-2.2.0, function sym_prepare_nego(), we set up PPR negotiation whenever goal->period is less than 10. goal->period is set to 0 by sym_check_goals() if spi_support_sync() is FALSE, so we get PPR negotiation for anything that doesn't support synchronous transfers. Is this what we want? T

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread James Bottomley
On Mon, 2005-08-22 at 17:39 -0700, Patrick Mansfield wrote: > But, we have to pass in a struct kref, to affect put/get_device, correct? Correct. Let me post the code mods to drivers/base/core.c so you can see how it works. Incidentally, it now passes your dev_child test without causing a slab co

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 06:26:25PM -0500, James Bottomley wrote: > On Mon, 2005-08-22 at 17:47 -0500, James Bottomley wrote: > > One apparent, but rather nasty, solution would be to embed object get > > and put into the klist head as functions that take the node, so > > klist_next would take the ob

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 03:14:27PM -0700, Patrick Mansfield wrote: > Attached is a test module, it oopsed for me with CONFIG_DEBUG_SLAB, on > ppc64. I was trying to complete testing of my hack (on current git tree, > rather than scsi-misc), but have been preempted by other work today. > The patch

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread James Bottomley
On Mon, 2005-08-22 at 17:47 -0500, James Bottomley wrote: > One apparent, but rather nasty, solution would be to embed object get > and put into the klist head as functions that take the node, so > klist_next would take the object reference as well as the list kref, > then drop it on klist_release.

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Luben Tuikov
--- James Bottomley <[EMAIL PROTECTED]> wrote: > On Sun, 2005-08-21 at 10:27 -0700, Luben Tuikov wrote: > > Is this the only use _you_ could find for a *radix tree*? ;-) > > Since of course sd.c uses it just as an enumeration, according to > > you this must be the only use? :-) > > And Dicto Simpl

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread James Bottomley
On Sun, 2005-08-21 at 17:33 -0700, Luben Tuikov wrote: > No preallocation is done from IRQ context. Do not spread FUD. > It seems to me that you're unaware how IDR works and unaware how > the driver works. Argumentum ad Hominem now ... we'll get them all eventually. Since you won't post the usag

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Andrew Morton
James Bottomley <[EMAIL PROTECTED]> wrote: > > Since you won't post the usage code, just answer this: how does what > you're doing with idr differ from its originally designed consumer: the > posix timers which also do the idr_remove() in IRQ context? erp. posix_timers has its own irq-safe lock

RE: [PATCH] minimal SAS transport class

2005-08-22 Thread Moore, Eric Dean
On Sunday, August 21, 2005 10:53 AM, Christoph Hellwig wrote: > This is just a brindup helper because the Fusion hardware does a SAS > remote port to target ID mapping in firmware, in fact the firmware > interface only addresses them using this assigned ID, which is a big > shortcoming in the Fusio

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread James Bottomley
On Mon, 2005-08-22 at 15:14 -0700, Patrick Mansfield wrote: > based on whatever was in current 2.6.x git tree a couple weeks ago.] > > The klist is (effectively) embedded within the struct device. > > The klist_next() gets and puts on the klist object, so when the struct > device ref (or kref) co

Re: [PATCH] libata: write cache and read ahead

2005-08-22 Thread Douglas Gilbert
NOTIFYJeff Garzik wrote: > Douglas Gilbert wrote: > >> The attachment is for discussion. It adds MODE SELECT >> support to libata allowing the write(back) cache and >> read ahead to be manipulated by users [i.e. the WCE and >> DRA ** bits in the SCSI Caching mode page]. > > > In general I appro

Re: [PATCH] minimal SAS transport class

2005-08-22 Thread Matt Domsch
On Sat, Aug 20, 2005 at 12:15:41AM -0400, [EMAIL PROTECTED] wrote: > - There are some real challenges in supporting a udev-named boot > device. For the most part, it's a distro issue, which is becoming > better. PS: for $10, name a 2.6 distro that uses udev out > of the box for disk names and

Re: [PATCH] libata: write cache and read ahead

2005-08-22 Thread Jeff Garzik
Douglas Gilbert wrote: With repect to my libata TEST UNIT READY patch there is a good chance that can be dropped. The feedback from the t10 reflector seems to indicate the current definition may be changed, unfortunately the proposed changes may require some SAT state information being held for e

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Andrew Morton
James Bottomley <[EMAIL PROTECTED]> wrote: > > Of course, if we're going to go to all this trouble, the next question > that arises naturally is why not just reuse the radix-tree code to > implement idr anyway ... ? Yes, we could probably have gone that way. radix-tree would need some enhanceme

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 04:59:16PM -0500, James Bottomley wrote: > On Mon, 2005-08-22 at 14:46 -0700, Patrick Mansfield wrote: > > Did you test with CONFIG_DEBUG_SLAB enabled? > > Yes, but only on an ia64. > > > I have a workaround for problems with device_for_each_child() not being > > "safe", I

[PATCH] libata: error processing + rw 6 byte fix

2005-08-22 Thread Douglas Gilbert
This is a revised patch following this post: http://marc.theaimsgroup.com/?l=linux-scsi&m=112461881419898&w=2 The plan is to add MODE SELECT SCSI command support to libata so that parameters such as WCE and DRA can be changed by a user (i.e. Write(back) Cache Enable and Disable Read Ahead respecti

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread James Bottomley
On Mon, 2005-08-22 at 14:46 -0700, Patrick Mansfield wrote: > Did you test with CONFIG_DEBUG_SLAB enabled? Yes, but only on an ia64. > I have a workaround for problems with device_for_each_child() not being > "safe", I'm trying to verify it right now, but the underlying problem is > in klist_next

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread James Bottomley
On Mon, 2005-08-22 at 09:28 -0500, James Bottomley wrote: > > I think providing locking inside idr.c was always a mistake - generally we > > rely on caller-provided locking for such things. > > Well, the reason is because they wanted lockless pre-alloc. If you do > it locked, you can't use GFP_KE

Re: [PATCH] minimal SAS transport class

2005-08-22 Thread Mike Anderson
Luben Tuikov <[EMAIL PROTECTED]> wrote: > Yes, that's cool. > > How about specifying the LU label _and_ the FS label to "root="? > > root=[:] > > := > WWN, > HCIL, > Funky name 1, > Funky name 2. > > := > filesystem specific label. > > All those labels are

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 10:06:19AM -0500, James Bottomley wrote: > +/* FIXME: can't break out of this unless klist_iter_exit is also > + * called before doing the break > + */ > +#define klist_for_each_entry(pos, head, member, iter) \ > + for (klist_iter_init(head, iter); (pos = ({ \ > +

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread James Bottomley
On Sun, 2005-08-21 at 20:52 -0700, Andrew Morton wrote: > erp. posix_timers has its own irq-safe lock, so we're doing extra, > unneeded locking in that code path. Possibly, the posix timer code is rather convoluted in this area so I'm not entirely sure my analysis is correct. > I think providing

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Luben Tuikov
--- James Bottomley <[EMAIL PROTECTED]> wrote: > On Sun, 2005-08-21 at 08:49 -0700, Luben Tuikov wrote: > > The caller is the aic94xx SAS LLDD. It uses IDR to generate unique > > task tag for each SCSI task being submitted. It is then used to lookup > > the task given the task tag, in effect usin

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Luben Tuikov
On 08/22/05 10:28, James Bottomley wrote: > On Sun, 2005-08-21 at 20:52 -0700, Andrew Morton wrote: > >>erp. posix_timers has its own irq-safe lock, so we're doing extra, >>unneeded locking in that code path. > > > Possibly, the posix timer code is rather convoluted in this area so I'm > not en

Re: [PATCH 2.6.12.5 1/2] lib: allow idr to be used in irq context

2005-08-22 Thread Luben Tuikov
On 08/21/05 23:52, Andrew Morton wrote: > James Bottomley <[EMAIL PROTECTED]> wrote: > >>Since you won't post the usage code, just answer this: how does what >> you're doing with idr differ from its originally designed consumer: the >> posix timers which also do the idr_remove() in IRQ context? >

Re: [PATCH] minimal SAS transport class

2005-08-22 Thread Luben Tuikov
On 08/22/05 00:55, Matt Domsch wrote: > On Sat, Aug 20, 2005 at 12:15:41AM -0400, [EMAIL PROTECTED] wrote: > >>- There are some real challenges in supporting a udev-named boot >> device. For the most part, it's a distro issue, which is becoming >> better. PS: for $10, name a 2.6 distro that uses

Re: [patch] ibmvscsi timeout fix

2005-08-22 Thread Joel Schopp
This patch fixes a long term borkenness in ibmvscsi where we were using the wrong timeout field from the scsi command (and using the wrong units.) Now broken by the fact that the scsi_cmnd timeout field is gone entirely. This only worked before because all the SCSI targets assumed that 0 was de

[patch] ibmvscsi timeout fix

2005-08-22 Thread Dave C Boutcher
This patch fixes a long term borkenness in ibmvscsi where we were using the wrong timeout field from the scsi command (and using the wrong units.) Now broken by the fact that the scsi_cmnd timeout field is gone entirely. This only worked before because all the SCSI targets assumed that 0 was defa

Re: [PATCH] libata: error processing + rw 6 byte fix

2005-08-22 Thread Jeff Garzik
Douglas Gilbert wrote: This is a revised patch following this post: http://marc.theaimsgroup.com/?l=linux-scsi&m=112461881419898&w=2 The plan is to add MODE SELECT SCSI command support to libata so that parameters such as WCE and DRA can be changed by a user (i.e. Write(back) Cache Enable and Di