Re: [RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-04 Thread Andrew Morton
On Tue, 04 Aug 2015 19:04:36 +0200 Robert Jarzmik wrote: > Andrew Morton writes: > > >> include/linux/scatterlist.h | 5 ++ > >> lib/scatterlist.c | 189 > >> > >> 2 files changed, 194 insertions(+) > > > > It's quite a bit of code for

Re: [RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-04 Thread Robert Jarzmik
Andrew Morton writes: >> include/linux/scatterlist.h | 5 ++ >> lib/scatterlist.c | 189 >> >> 2 files changed, 194 insertions(+) > > It's quite a bit of code for a fairly specialised thing. How ugly > would it be to put this in a new .c

Re: [RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-03 Thread Andrew Morton
On Sat, 1 Aug 2015 15:17:13 +0200 Robert Jarzmik wrote: > Sometimes a scatter-gather has to be split into several chunks, or sub scatter > lists. This happens for example if a scatter list will be handled by multiple > DMA channels, each one filling a part of it. > > A concrete example comes w

[RFC PATCH v2] lib: scatterlist: add sg splitting function

2015-08-01 Thread Robert Jarzmik
Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API, where the scatter list is allocated from users