kernel/kfifo.c: add handling of chained scatterlists
authorStefani Seibold <stefani@seibold.net>
Wed, 11 Aug 2010 21:17:27 +0000 (14:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 15:43:29 +0000 (08:43 -0700)
commitd78a3eda6985e74bc21a23362f27526f73e71649
treefe395ab0372893e66c8f1375ca8b11a33020d11f
parent5af568cbd55f60b5a1d174f621b273e4f585dc35
kernel/kfifo.c: add handling of chained scatterlists

The current kfifo scatterlist implementation will not work with chained
scatterlists.  It assumes that struct scatterlist arrays are allocated
contiguously, which is not the case when chained scatterlists (struct
sg_table) are in use.

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kfifo.c