mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
NVMe: Advance the sg pointer when filling in an sg list
For multipage BIOs, we were always using sg[0] instead of advancing through the list. Oops :-) Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
This commit is contained in:
parent
d2d8703481
commit
51882d00f0
1 changed files with 1 additions and 0 deletions
|
@ -321,6 +321,7 @@ static int nvme_map_bio(struct device *dev, struct nvme_req_info *info,
|
|||
sg_init_table(sg, psegs);
|
||||
bio_for_each_segment(bvec, bio, i) {
|
||||
sg_set_page(sg, bvec->bv_page, bvec->bv_len, bvec->bv_offset);
|
||||
sg++;
|
||||
/* XXX: handle non-mergable here */
|
||||
nsegs++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue