2006-03-14 00:53:26

by Eric Moore

[permalink] [raw]
Subject: [PATCH ] drivers/base/bus.c - export reprobe

Request for exporting device_reprobe -

Adding support for exposing hidden raid components
for sg interface. The sdev->no_uld_attach flag
will set set accordingly.

The sas module supports adding/removing raid
volumes using online storage management application
interface.

This patch was provided to me by Christoph Hellwig.

Signed-off-by: Eric Moore <[email protected]>


Attachments:
rescan_device (1.60 kB)
rescan_device

2006-03-14 15:36:24

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Mon, Mar 13, 2006 at 05:52:40PM -0700, Moore, Eric wrote:
> Request for exporting device_reprobe -
>
> Adding support for exposing hidden raid components
> for sg interface. The sdev->no_uld_attach flag
> will set set accordingly.
>
> The sas module supports adding/removing raid
> volumes using online storage management application
> interface.
>
> This patch was provided to me by Christoph Hellwig.
>
> Signed-off-by: Eric Moore <[email protected]>

base64 for the attachment with DOS line ends? ugh, can you please fix
this up and resend?

Also, it looks like USB needs to call this function, (based on the
comment)? Care to switch that code over to have it use it too?

thanks,

greg k-h

2006-03-14 16:18:40

by Eric Moore

[permalink] [raw]
Subject: RE: [PATCH ] drivers/base/bus.c - export reprobe

On Tuesday, March 14, 2006 8:35 AM, Greg KH wrote:

>
> base64 for the attachment with DOS line ends? ugh, can you please fix
> this up and resend?
>

Here is repost of patch due to dos line endings.



Attachments:
rescan_device (1.60 kB)
rescan_device

2006-03-14 16:27:28

by Jan-Benedict Glaw

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, 2006-03-14 09:18:18 -0700, Moore, Eric <[email protected]> wrote:
> On Tuesday, March 14, 2006 8:35 AM, Greg KH wrote:
> > base64 for the attachment with DOS line ends? ugh, can you please fix
> > this up and resend?
>
> Here is repost of patch due to dos line endings.

Mangled again...

MfG, JBG

--
Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));


Attachments:
(No filename) (637.00 B)
signature.asc (189.00 B)
Digital signature
Download all attachments

2006-03-14 16:50:30

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 09:18:18AM -0700, Moore, Eric wrote:
> On Tuesday, March 14, 2006 8:35 AM, Greg KH wrote:
>
> >
> > base64 for the attachment with DOS line ends? ugh, can you please fix
> > this up and resend?
> >
>
> Here is repost of patch due to dos line endings.

Nope, still there, and still in base64 :(

thanks,

greg k-h

2006-03-14 17:09:00

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 07:34:55AM -0800, Greg KH wrote:
> Also, it looks like USB needs to call this function, (based on the
> comment)? Care to switch that code over to have it use it too?

what comment do you think indicates that? It's needed for raid drivers
that

a) expose physical volumes but set the no_uld_attach flag to hide them
from sd
b) allow only raid volume creation/deletion so this flag may be set/cleared
at runtime

2006-03-14 17:20:01

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 05:08:55PM +0000, Christoph Hellwig wrote:
> On Tue, Mar 14, 2006 at 07:34:55AM -0800, Greg KH wrote:
> > Also, it looks like USB needs to call this function, (based on the
> > comment)? Care to switch that code over to have it use it too?
>
> what comment do you think indicates that? It's needed for raid drivers
> that

I saw the:

+ if (dev->driver) {^M
+ if (dev->parent) /* Needed for USB */^M
+ down(&dev->parent->sem);^M

portion and thought it came from USB core code somewhere. Or are you
referring to the need for USB-storage here?

>
> a) expose physical volumes but set the no_uld_attach flag to hide them
> from sd
> b) allow only raid volume creation/deletion so this flag may be set/cleared
> at runtime

Ok, fair enough, just was a bit confused.

thanks,

greg k-h

2006-03-14 17:25:47

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 09:19:51AM -0800, Greg KH wrote:
> I saw the:
>
> + if (dev->driver) {^M
> + if (dev->parent) /* Needed for USB */^M
> + down(&dev->parent->sem);^M
>
> portion and thought it came from USB core code somewhere. Or are you
> referring to the need for USB-storage here?

It's copied from a runtime close to this one in the driver core.
Unfortunately it's not easily sharable so I duplicated those few lines.

2006-03-14 17:29:38

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 05:25:43PM +0000, Christoph Hellwig wrote:
> On Tue, Mar 14, 2006 at 09:19:51AM -0800, Greg KH wrote:
> > I saw the:
> >
> > + if (dev->driver) {^M
> > + if (dev->parent) /* Needed for USB */^M
> > + down(&dev->parent->sem);^M
> >
> > portion and thought it came from USB core code somewhere. Or are you
> > referring to the need for USB-storage here?
>
> It's copied from a runtime close to this one in the driver core.
> Unfortunately it's not easily sharable so I duplicated those few lines.

Ah, ok, that makes more sense.

Eric, care to resend without the mime crud so I can apply it?

thanks,

greg k-h

2006-03-14 17:43:49

by James Bottomley

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, 2006-03-14 at 09:29 -0800, Greg KH wrote:
> Ah, ok, that makes more sense.
>
> Eric, care to resend without the mime crud so I can apply it?

Actually, would it be OK if you sign off on this and I take it via the
scsi tree? Otherwise there'll be a nasty cross dependency between
scsi-misc and usb and I'll spend the next week explaining what trees you
need to pull in to get scsi-misc to build.

Thanks,

James


2006-03-14 17:57:54

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 11:43:30AM -0600, James Bottomley wrote:
> On Tue, 2006-03-14 at 09:29 -0800, Greg KH wrote:
> > Ah, ok, that makes more sense.
> >
> > Eric, care to resend without the mime crud so I can apply it?
>
> Actually, would it be OK if you sign off on this and I take it via the
> scsi tree? Otherwise there'll be a nasty cross dependency between
> scsi-misc and usb and I'll spend the next week explaining what trees you
> need to pull in to get scsi-misc to build.

Sure, that makes a lot of sense:

Signed-off-by: Greg Kroah-Hartman <[email protected]>

Oh, and please make that scsi wrapper function either
EXPORT_SYMBOL_GPL() or an inline function or macro.

thanks,

greg k-h

2006-03-14 22:01:26

by Eric Moore

[permalink] [raw]
Subject: RE: [PATCH ] drivers/base/bus.c - export reprobe

On Tuesday, March 14, 2006 10:58 AM, Greg KH wrote:

>
> Sure, that makes a lot of sense:
>
> Signed-off-by: Greg Kroah-Hartman <[email protected]>
>
> Oh, and please make that scsi wrapper function either
> EXPORT_SYMBOL_GPL() or an inline function or macro.
>
> thanks,
>


Here we go again (hopefully no managled this time).

I'll repost the other patch with EXPORT_SYMBOL_GPL.

Eric Moore


Attachments:
rescan_device (1.56 kB)
rescan_device

2006-03-14 22:31:16

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, Mar 14, 2006 at 03:01:05PM -0700, Moore, Eric wrote:
> On Tuesday, March 14, 2006 10:58 AM, Greg KH wrote:
>
> >
> > Sure, that makes a lot of sense:
> >
> > Signed-off-by: Greg Kroah-Hartman <[email protected]>
> >
> > Oh, and please make that scsi wrapper function either
> > EXPORT_SYMBOL_GPL() or an inline function or macro.
> >
> > thanks,
> >
>
>
> Here we go again (hopefully no managled this time).

Nope, still in base64 :(

thanks,

greg k-h

2006-03-14 22:43:56

by James Bottomley

[permalink] [raw]
Subject: Re: [PATCH ] drivers/base/bus.c - export reprobe

On Tue, 2006-03-14 at 09:57 -0800, Greg KH wrote:
> On Tue, Mar 14, 2006 at 11:43:30AM -0600, James Bottomley wrote:
> > Actually, would it be OK if you sign off on this and I take it via the
> > scsi tree? Otherwise there'll be a nasty cross dependency between
> > scsi-misc and usb and I'll spend the next week explaining what trees you
> > need to pull in to get scsi-misc to build.
>
> Sure, that makes a lot of sense:
>
> Signed-off-by: Greg Kroah-Hartman <[email protected]>

OK, got it in scsi-misc, thanks.

> Oh, and please make that scsi wrapper function either
> EXPORT_SYMBOL_GPL() or an inline function or macro.

I've put it in as an inline function.

James