Re: [Ksummit-2008-discuss] Kernel Summit Request for Discussion: The Future of Target mode and Cloud storage on Linux

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

 



snip

non overlapping code bases in the kernel is the right thing to do, so
what I'd like is for us to evolve the existing solution into something
that will work for both (by taking pieces of the out of SCST and placing
them into STGT).


snip


James, you missed that SCST for a long time has support for implementing backstorage devices in the user space. This is provided through backstorage device handler called scst_user. You can find its interface

Does scst support moving the scsi state machine there? I think that is what James meant by some of his comments, but I do not think this detail is too important. If you can, great one less todo item.


If all necessary pieces of STGT moved in the kernel, it would become pretty much the same as SCST at the moment.

In the top paragraph James is saying to move scst into stgt, so it seems like we can do the following:

1. You and with Nick battle each other about what are the best pieces of scst and his target and what should go upstream.

2. Do a ibm vscsi target for the new framework since that is the only upstream kernel target right now. For qla2xxx, we can forget the patches we sent qlogic and use what comes with the common framework since scst has one already.

3. Start sending patches for common code like scatterlist improvements and scatterlist memory reservations.

4. Send patches for new target infrastructure core code for review and cleanup. And send ibm vscsi target driver for an example and to make sure there are no functionality regressions. The latter should not be too hard because stgt does not have many features right? :)

5. When common code is merged and new core target infrastructure is through the review process we can just swap out the new code for stgt and name it whatever you want.

Tomo and I can handle trying to modify the new framework to support putting a scsi state machine in userspace and sharing that with kernel code. Right now the primary targets for stgt that users are deploying are are completely in userspace, so we do not have much to worry about. There are ibm vscsi users, but they are a lot smaller in number compared to iscsi. I would bet the ibmvscsi would prefer to use the kernel target we make too.

Our userspace tools will also be able to support both kernel space and userspace targets with little trouble so distros that have stgt will not notice any differences.

Surely this will be faster than writing all these mails and wasting time on this :)

I think James also said something about moving STGT in-kernel to get performance gains, but I do not think it means that we have to push exact code that sits in Tomo's git tree from usrspace into the kernel. If along the way we replace it with scst or Nick's code and we end up with a variant of scst or Nicks code that can still support userspace targets then I do not think any one is going to make long threads like these have resulted in :)

Will this work for everyone?
--
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