In our project, we use our own driver which has an API compatible with
differs in implementation. Thus, we can use the target drivers from
the SCST project
without a change. So far, our driver works with ib_srpt and iSCSI, and
as well, but requires this patch.
On Tue, Jan 29, 2013 at 2:00 PM, Bart Van Assche <bvanassche@...> wrote:
> On 01/29/13 07:16, Nikolai Kopanygin wrote:
>> I have a problem receiving data from the QLogic FC target driver to
>> long scatter-gather lists
>> because it uses sg++ instead of sg_next() for traversing them.
>> I propose the attached patch fixing the issue.
> We need more information. Why did you start developing the attached patch ?
> Was it after you had done source reading or did you run into a real issue ?
> In the last case we need more information about which behavior you had
> observed. And if you came up with this after doing source reading, please
> have a look at the code in scst_mem.c. Using sg_next() is mandatory when
> using sg_alloc_table(). However, in scst_mem.c one can see that
> sgv_pool_alloc() does not use sg-list chaining even if the number of sg-list
> entries exceeds SG_MAX_SINGLE_ALLOC.