Skip to content
Commit 70eb8040 authored by Jens Axboe's avatar Jens Axboe
Browse files

Add chained sg support to linux/scatterlist.h



The core of the patch - allow the last sg element in a scatterlist
table to point to the start of a new table. We overload the LSB of
the page pointer to indicate whether this is a valid sg entry, or
merely a link to the next list.

Includes a fix from Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
correcting the ifdef ARCH_HAS_SG_CHAIN guarding sg_last().

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent c6132da1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment