Re: Some plans for scsi_cmnd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 25, 2007 at 02:47:50PM +0100, Christoph Hellwig wrote:
> On Tue, Sep 25, 2007 at 07:37:33AM -0600, Matthew Wilcox wrote:
> > 2. Thanks to a thinko, we also discussed the upper-layer ->done.  We think
> > it should be feasible to move this from the scsi_cmnd to the scsi_device
> > since sg doesn't use it.
> 
> I suspect putting it into the scsi_driver would be even better.

That could work, but I don't think we have a pointer from the
scsi_device (or scsi_cmnd) to the scsi_driver.

> I'd prefer to add alloc_mnd and destroy_cmnd methods as per struct
> inode.  That also allows drivers to do things like dma_pool allocations
> ahead of time and not worry about needing to do this kind of allocations
> from softirq context which is at least theoretically deadlockable
> without emergency pool schemes.

OK, we clearly weren't quite envisaging the same thing for this part.
Good job I put some pseudo-code down.  I don't have any objection to
this scheme.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux