On Wed, Apr 07, 2004 at 03:42:45PM -0500, Lee Xing wrote: > Thanks for the response. > > The shim (a pseudo SCSI lower-level driver) we are working on sits in > between Linux SCSI mid-level driver and our existing kernel driver which > interfaces with a FC driver which interacts with the FC HBA. wow that sounds like a great way to kill performance, that many extra layers > > To track SCSI initiators' tasks, it would be great if our existing kernel > driver knows which application makes the (SCSI passthrough ioctl) call to > /dev/sda. well... it's a fundamentally hard problem. For example the application that submitted the IO may no longer exist on disk by the time you get to see the IO, or the process may already have exited. It sounds like a fundamentally fragile/broken concept to use this information for *anything*, it's still not clear to me what you'd use it for (other than doing a gross hack by faking IO priorities based on application name but that's sooo not the right solution to that problem)