linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* about a linux sata driver hotplug error
@ 2006-05-10  6:41 mayl
  2006-05-10 15:16 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: mayl @ 2006-05-10  6:41 UTC (permalink / raw)
  To: linux-hotplug

Hello:

    I have a Marvell 5081 sata disk card ,and get driver code from
Marvell.The driver work like a scsi driver,but can not work well in
hotplug operation. My OS kernel is Linux 2.6.12
    When I look up the code , I find that when a disk is pluged,driver 's
operation as follows:
    1 schedule a work to system work queue ,the work include :
       call scsi_add_device() to add a new scsi device to system
    2 call scsi_unblock_requests() to this scsi host in a timer callback.

 Because step 1 is a  queued work,and step 2 is a timer callback
fuction,the working sequences is not stable. If step2 works earlyer than
step1, scsi_unblock_requests cannot found a new disk pluged ,and make an
error.

   So I make an modify at the driver code ,use a sharing value to make
sure that step 2 must work after step1.But in this case,the function
scsi_add_device cannot complete.

    Could you tell me how to use the scsi functions in a driver ,and make a
security hotplug fuction?

                    Thanks alot


                             Yili Ma






-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: about a linux sata driver hotplug error
  2006-05-10  6:41 about a linux sata driver hotplug error mayl
@ 2006-05-10 15:16 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2006-05-10 15:16 UTC (permalink / raw)
  To: linux-hotplug

On Wed, May 10, 2006 at 02:41:13PM +0800, mayl@ict.ac.cn wrote:
> Hello:
> 
>     I have a Marvell 5081 sata disk card ,and get driver code from
> Marvell.

Then please contact Marvell, as we have no idea what the code looks like
or is doing, so there's nothing we can really do to help you out,
unfortunatly.

Good luck,

greg k-h



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2006-05-10 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-10  6:41 about a linux sata driver hotplug error mayl
2006-05-10 15:16 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).